Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deactivation of UPlay overlay #169

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions gamefixes-steam/359550.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@


def main() -> None:
"""Rainbow Six Siege needs vk_x11_override_min_image_count=2 for AMD, and overlay disabled for Vulkan"""
util.disable_uplay_overlay()
"""Rainbow Six Siege needs vk_x11_override_min_image_count=2 for AMD"""
util.set_environment('vk_x11_override_min_image_count', '2')
9 changes: 0 additions & 9 deletions gamefixes-steam/812140.py

This file was deleted.

36 changes: 0 additions & 36 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,42 +548,6 @@ def disable_protonmediaconverter() -> None:


@once
def disable_uplay_overlay() -> bool:
"""Disables the UPlay in-game overlay.

Creates or appends the UPlay settings.yml file
with the correct setting to disable the overlay.
UPlay will overwrite settings.yml on launch, but keep
this setting.
"""
config_dir = os.path.join(
protonprefix(),
'drive_c/users/steamuser/Local Settings/Application Data/Ubisoft Game Launcher/',
)
config_file = os.path.join(config_dir, 'settings.yml')

os.makedirs(config_dir, exist_ok=True)

try:
data = (
'overlay:\n'
' enabled: false\n'
' forceunhookgame: false\n'
' fps_enabled: false\n'
' warning_enabled: false\n'
'user:\n'
' closebehavior: CloseBehavior_Close'
)
with open(config_file, 'a+', encoding='ascii') as file:
file.write(data)
log.info('Disabled UPlay overlay')
return True
except OSError as err:
log.warn('Could not disable UPlay overlay: ' + err.strerror)

return False


def create_dosbox_conf(
conf_file: str, conf_dict: Mapping[str, Mapping[str, Any]]
) -> None:
Expand Down
Loading