From 375832a180eb819d1dd6a0dd6a11cf897396f30b Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:17:52 -0700 Subject: [PATCH] gamefixes-steam: update format --- gamefixes-steam/1697970811.py | 20 ++++++++++---------- gamefixes-steam/658260.py | 7 +++---- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/gamefixes-steam/1697970811.py b/gamefixes-steam/1697970811.py index bbec4ad0..2d53ed2a 100644 --- a/gamefixes-steam/1697970811.py +++ b/gamefixes-steam/1697970811.py @@ -14,34 +14,34 @@ from protonfixes.logger import log -def main(): +def main() -> None: env = protonmain.g_session.env.copy() - wine = f"{util.protondir()}/files/bin/wine64" + wine = f'{util.protondir()}/files/bin/wine64' install_dir = util.get_game_install_path() # Font installer inside the `fonts` subdir - font_installer = "overlock_mod_font_installer.exe" + font_installer = 'overlock_mod_font_installer.exe' # Digest of the font installer - hashsum = "d3bd48162d91322c3d2861cdccc538955336eff7f0fe50eeafee1b7551a52152" + hashsum = 'd3bd48162d91322c3d2861cdccc538955336eff7f0fe50eeafee1b7551a52152' - if os.path.isfile(f"{util.protonprefix()}/drive_c/windows/Fonts/Overlock-Mod.ttf"): - log.info("Overlock-Mod.ttf already installed in prefix") + if os.path.isfile(f'{util.protonprefix()}/drive_c/windows/Fonts/Overlock-Mod.ttf'): + log.info('Overlock-Mod.ttf already installed in prefix') return - if not os.path.isfile(f"{install_dir}/font/{font_installer}"): + if not os.path.isfile(f'{install_dir}/font/{font_installer}'): log.warn(f"Could not find '{font_installer}' in '{install_dir}', skipping...") return - with open(f"{install_dir}/font/{font_installer}", mode="rb") as file: + with open(f'{install_dir}/font/{font_installer}', mode='rb') as file: if sha256(file.read()).hexdigest() != hashsum: - log.warn(f"Digest mismatched: {font_installer}") + log.warn(f'Digest mismatched: {font_installer}') log.warn(f"Expected '{hashsum}', skipping...") return log.info("Installing font 'Overlock-Mod.ttf' in prefix") retc = run( - [wine, "start", "/unix", f"{install_dir}/font/{font_installer}", "/silent"], + [wine, 'start', '/unix', f'{install_dir}/font/{font_installer}', '/silent'], check=False, env=env, ).returncode diff --git a/gamefixes-steam/658260.py b/gamefixes-steam/658260.py index d5c14b38..75a90e69 100644 --- a/gamefixes-steam/658260.py +++ b/gamefixes-steam/658260.py @@ -1,10 +1,9 @@ -""" BLUE REFLECTION +"""BLUE REFLECTION Missing voices/sounds in cutscenes """ -#pylint: disable=C0103 - from protonfixes import util -def main(): + +def main() -> None: util.disable_protonmediaconverter()