Skip to content

Commit

Permalink
gamefixes-steam: update format
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Sep 4, 2024
1 parent 0c467b8 commit 375832a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
20 changes: 10 additions & 10 deletions gamefixes-steam/1697970811.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions gamefixes-steam/658260.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 375832a

Please sign in to comment.