aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games_native/src/gamedefs.h
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-12 07:08:09 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-12 07:08:09 -0500
commit755698f1adceef55f52c8e44c9746537885c9bf7 (patch)
tree23d1a9fea936805708eeccf2ac2684620565d328 /libs/basic_games_native/src/gamedefs.h
parent019870ffd8308d94289d72d45abeb3db39ccde92 (diff)
Replace Python plugins with native C++ .so, remove bundled Python (~95MB)
- Add native plugins: form43_checker, script_extender_checker, preview_dds, basic_games (75 game defs via IPluginProxy pattern with Steam/GOG detection) - Remove portable Python from Dockerfile and build-inner.sh - Add Python settings tab with venv support (system python3 + PyQt6) - Skip loading plugin_python.so when Python disabled (default: off) - Update pythonrunner.cpp to use venv at ~/.local/share/fluorine/python-venv/ - Preserve real file permissions in FUSE VFS (fixes native executable +x bits) - Add FUSE_SET_ATTR_MODE handler so chmod works through VFS - Fix desktop shortcut Exec= to use fluorine-manager launcher, not bare binary Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/basic_games_native/src/gamedefs.h')
-rw-r--r--libs/basic_games_native/src/gamedefs.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/libs/basic_games_native/src/gamedefs.h b/libs/basic_games_native/src/gamedefs.h
new file mode 100644
index 0000000..bda93eb
--- /dev/null
+++ b/libs/basic_games_native/src/gamedefs.h
@@ -0,0 +1,61 @@
+#ifndef GAMEDEFS_H
+#define GAMEDEFS_H
+
+#include <uibase/iplugingame.h>
+
+#include <QList>
+#include <QString>
+#include <QStringList>
+
+#include <vector>
+
+struct GameDefinition {
+ // Plugin metadata
+ QString pluginName;
+ QString author;
+ QString version; // parsed as VersionInfo string
+
+ // Game identity
+ QString gameName;
+ QString gameShortName;
+ QStringList validShortNames;
+
+ // Store IDs
+ QList<int> steamAppIds;
+ QList<int> gogAppIds;
+ QStringList epicAppIds;
+
+ // Executables
+ QString binaryName;
+ QString launcherName;
+
+ // Nexus
+ QString gameNexusName;
+ int nexusGameId = 0;
+
+ // Directories (may contain %DOCUMENTS%, %USERPROFILE%, %GAME_PATH%,
+ // %GAME_DOCUMENTS%)
+ QString dataDirectory;
+ QString documentsDirectory;
+ QString savesDirectory;
+ QString saveExtension;
+
+ // Configuration
+ QStringList iniFiles;
+ QString supportURL;
+
+ // Load order / sorting
+ MOBase::IPluginGame::LoadOrderMechanism loadOrderMechanism =
+ MOBase::IPluginGame::LoadOrderMechanism::None;
+ MOBase::IPluginGame::SortMechanism sortMechanism =
+ MOBase::IPluginGame::SortMechanism::NONE;
+
+ // Plugins
+ QStringList primaryPlugins;
+ QStringList dlcPlugins;
+};
+
+// Returns the complete list of all game definitions
+const std::vector<GameDefinition>& allGameDefinitions();
+
+#endif // GAMEDEFS_H