aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games/games/game_witcher3.py
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-11 02:37:39 -0600
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-11 02:37:39 -0600
commit7ee008e150bc5bcf76082d726f719ee0fdfda982 (patch)
tree27fb39be241fdb5ac2734c574de678977d1856d0 /libs/basic_games/games/game_witcher3.py
Fluorine Manager: full Linux port of Mod Organizer 2
Complete native Linux port with FUSE-based virtual filesystem, Proton/umu-run integration, and Flatpak packaging. Key features: - FUSE VFS replacing Windows USVFS (in-process + standalone helper for Flatpak) - Proton/GE-Proton/umu-run launcher with env var forwarding - Flatpak support (sandbox-aware VFS, NXM handler, umu-run) - Wine prefix management UI - Case-insensitive path resolution for Linux filesystems - QSettings-safe INI handling (avoids Bethesda INI corruption) - Portable instance support with auto-generated launcher scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/basic_games/games/game_witcher3.py')
-rw-r--r--libs/basic_games/games/game_witcher3.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/libs/basic_games/games/game_witcher3.py b/libs/basic_games/games/game_witcher3.py
new file mode 100644
index 0000000..ff64df2
--- /dev/null
+++ b/libs/basic_games/games/game_witcher3.py
@@ -0,0 +1,52 @@
+from pathlib import Path
+from typing import List
+
+from PyQt6.QtCore import QDir
+
+import mobase
+
+from ..basic_features import BasicGameSaveGameInfo
+from ..basic_features.basic_save_game_info import BasicGameSaveGame
+from ..basic_game import BasicGame
+
+
+class Witcher3SaveGame(BasicGameSaveGame):
+ def allFiles(self):
+ return [self._filepath.name, self._filepath.name.replace(".sav", ".png")]
+
+
+class Witcher3Game(BasicGame):
+ Name = "Witcher 3 Support Plugin"
+ Author = "Holt59"
+ Version = "1.0.0a"
+
+ GameName = "The Witcher 3: Wild Hunt"
+ GameShortName = "witcher3"
+ GaneNexusHame = "witcher3"
+ GameNexusId = 952
+ GameSteamId = [499450, 292030]
+ GameGogId = [1640424747, 1495134320, 1207664663, 1207664643]
+ GameBinary = "bin/x64/witcher3.exe"
+ GameDataPath = "Mods"
+ GameSaveExtension = "sav"
+ GameDocumentsDirectory = "%DOCUMENTS%/The Witcher 3"
+ GameSavesDirectory = "%GAME_DOCUMENTS%/gamesaves"
+ GameSupportURL = (
+ r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
+ "Game:-The-Witcher-3"
+ )
+
+ def init(self, organizer: mobase.IOrganizer):
+ super().init(organizer)
+ self._register_feature(BasicGameSaveGameInfo(lambda s: s.with_suffix(".png")))
+ return True
+
+ def iniFiles(self):
+ return ["user.settings", "input.settings"]
+
+ def listSaves(self, folder: QDir) -> List[mobase.ISaveGame]:
+ ext = self._mappings.savegameExtension.get()
+ return [
+ Witcher3SaveGame(path)
+ for path in Path(folder.absolutePath()).glob(f"*.{ext}")
+ ]