aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games/games/game_gta-3-de.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_gta-3-de.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_gta-3-de.py')
-rw-r--r--libs/basic_games/games/game_gta-3-de.py72
1 files changed, 72 insertions, 0 deletions
diff --git a/libs/basic_games/games/game_gta-3-de.py b/libs/basic_games/games/game_gta-3-de.py
new file mode 100644
index 0000000..c9fc338
--- /dev/null
+++ b/libs/basic_games/games/game_gta-3-de.py
@@ -0,0 +1,72 @@
+import os
+from pathlib import Path
+
+from PyQt6.QtCore import QDir, QFileInfo
+
+import mobase
+
+from ..basic_game import BasicGame
+
+
+class GTA3DefinitiveEditionModDataChecker(mobase.ModDataChecker):
+ def __init__(self):
+ super().__init__()
+
+ def dataLooksValid(
+ self, filetree: mobase.IFileTree
+ ) -> mobase.ModDataChecker.CheckReturn:
+ for entry in filetree:
+ if Path(entry.name().casefold()).suffix == ".pak":
+ return mobase.ModDataChecker.VALID
+
+ return mobase.ModDataChecker.INVALID
+
+
+class GTA3DefinitiveEditionGame(BasicGame):
+ Name = "Grand Theft Auto III - Definitive Edition Support Plugin"
+ Author = "dekart811"
+ Version = "1.0"
+
+ GameName = "GTA III - Definitive Edition"
+ GameShortName = "grandtheftautothetrilogy"
+ GameNexusName = "grandtheftautothetrilogy"
+ GameBinary = "Gameface/Binaries/Win64/LibertyCity.exe"
+ GameDataPath = "Gameface/Content/Paks/~mods"
+ GameDocumentsDirectory = (
+ "%USERPROFILE%/Documents/Rockstar Games/"
+ "GTA III Definitive Edition/Config/WindowsNoEditor"
+ )
+ GameSavesDirectory = "%GAME_DOCUMENTS%/../../SaveGames"
+ GameSaveExtension = "sav"
+ GameSupportURL = (
+ r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
+ "Game:-Grand-Theft-Auto:-The-Trilogy-%E2%80%90-The-Definitive-Edition"
+ )
+
+ def init(self, organizer: mobase.IOrganizer) -> bool:
+ super().init(organizer)
+ self._register_feature(GTA3DefinitiveEditionModDataChecker())
+ return True
+
+ def executables(self):
+ return [
+ mobase.ExecutableInfo(
+ "GTA III - Definitive Edition",
+ QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())),
+ ),
+ mobase.ExecutableInfo(
+ "GTA III - Definitive Edition (DirectX 12)",
+ QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())),
+ ).withArgument("-dx12"),
+ ]
+
+ def iniFiles(self):
+ return ["GameUserSettings.ini", "CustomSettings.ini"]
+
+ def initializeProfile(self, directory: QDir, settings: mobase.ProfileSetting):
+ # Create the mods directory if it doesn't exist
+ modsPath = self.dataDirectory().absolutePath()
+ if not os.path.exists(modsPath):
+ os.mkdir(modsPath)
+
+ super().initializeProfile(directory, settings)