From 98cbe8740026bb29717eaddf3fcd39bc3b02b418 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sun, 4 May 2025 00:10:01 -0500 Subject: [PATCH] Reformat --- games/game_oblivion_remaster.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/games/game_oblivion_remaster.py b/games/game_oblivion_remaster.py index e61c00f..98a162c 100644 --- a/games/game_oblivion_remaster.py +++ b/games/game_oblivion_remaster.py @@ -28,9 +28,12 @@ from ..basic_game import BasicGame def getLootPath() -> Path | None: try: - with winreg.OpenKeyEx(winreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{BF634210-A0D4-443F-A657-0DCE38040374}_is1") as key: + with winreg.OpenKeyEx( + winreg.HKEY_LOCAL_MACHINE, + "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{BF634210-A0D4-443F-A657-0DCE38040374}_is1", + ) as key: value = winreg.QueryValueEx(key, "InstallLocation") - return Path((value[0]+"/LOOT.exe").replace("/", "\\")) + return Path((value[0] + "/LOOT.exe").replace("/", "\\")) except FileNotFoundError: return None @@ -542,12 +545,9 @@ class OblivionRemasteredGame(BasicGame, mobase.IPluginFileMapper): .loaderPath() ), ), - mobase.ExecutableInfo( - "LOOT", - QFileInfo(str(getLootPath())) - ).withArgument( + mobase.ExecutableInfo("LOOT", QFileInfo(str(getLootPath()))).withArgument( '--game="Oblivion Remastered"' - ) + ), ] def primaryPlugins(self) -> list[str]: