aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games_native/src/basicgamesproxy.cpp
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-12 02:40:00 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-12 02:40:00 -0500
commite0fb66428a9b78b4c326df8d7e30429a5b271d74 (patch)
tree0fd83fe790ecb7d5cd3cfb36535e45d1b7118098 /libs/basic_games_native/src/basicgamesproxy.cpp
parente985dc340097831d4e5625941bded217abaa57b8 (diff)
Remove dead plugin scaffolds and duplicate lib dirs
The *_native C++ ports were replaced by bundled Python + .py plugins in de4db79, but the source dirs were left behind without any CMake wiring — causing confusion when editing them appears to do nothing. Same story for libs/dds_header (stale duplicate of libs/preview_dds, unrelated to the actively-used libs/dds-header) and libs/game_gamebryo (superseded by libs/game_bethesda/src/gamebryo). Removes: - libs/basic_games_native - libs/form43_checker_native - libs/installer_omod_native - libs/preview_dds_native - libs/rootbuilder_native - libs/script_extender_checker_native - libs/dds_header - libs/game_gamebryo
Diffstat (limited to 'libs/basic_games_native/src/basicgamesproxy.cpp')
-rw-r--r--libs/basic_games_native/src/basicgamesproxy.cpp99
1 files changed, 0 insertions, 99 deletions
diff --git a/libs/basic_games_native/src/basicgamesproxy.cpp b/libs/basic_games_native/src/basicgamesproxy.cpp
deleted file mode 100644
index f7efefd..0000000
--- a/libs/basic_games_native/src/basicgamesproxy.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-#include "basicgamesproxy.h"
-#include "basicgameplugin.h"
-#include "gamedefs.h"
-
-#include <uibase/versioninfo.h>
-
-BasicGamesProxy::BasicGamesProxy() {}
-
-BasicGamesProxy::~BasicGamesProxy()
-{
- // Clean up all loaded plugins
- for (auto& list : m_loaded) {
- qDeleteAll(list);
- }
- m_loaded.clear();
-}
-
-bool BasicGamesProxy::init(MOBase::IOrganizer* organizer)
-{
- m_organizer = organizer;
- return true;
-}
-
-QString BasicGamesProxy::name() const
-{
- return "Basic Games Native";
-}
-
-QString BasicGamesProxy::author() const
-{
- return "Fluorine Manager";
-}
-
-QString BasicGamesProxy::description() const
-{
- return "Native C++ implementation of basic game plugins";
-}
-
-MOBase::VersionInfo BasicGamesProxy::version() const
-{
- return MOBase::VersionInfo(1, 0, 0);
-}
-
-QList<MOBase::PluginSetting> BasicGamesProxy::settings() const
-{
- return {};
-}
-
-QStringList BasicGamesProxy::pluginList(const QDir&) const
-{
- QStringList list;
- const auto& defs = allGameDefinitions();
- for (size_t i = 0; i < defs.size(); ++i) {
- list.append(QString("native_game_%1").arg(i));
- }
- return list;
-}
-
-QList<QObject*> BasicGamesProxy::load(const QString& identifier)
-{
- // Already loaded?
- auto it = m_loaded.find(identifier);
- if (it != m_loaded.end()) {
- return it.value();
- }
-
- QList<QObject*> plugins;
-
- // Parse the index from the identifier
- if (!identifier.startsWith("native_game_"))
- return plugins;
-
- bool ok = false;
- int index = identifier.mid(12).toInt(&ok);
- if (!ok)
- return plugins;
-
- const auto& defs = allGameDefinitions();
- if (index < 0 || index >= static_cast<int>(defs.size()))
- return plugins;
-
- auto* plugin = new BasicGamePlugin(defs[index]);
- if (m_organizer) {
- plugin->init(m_organizer);
- }
- plugins.append(plugin);
-
- m_loaded.insert(identifier, plugins);
- return plugins;
-}
-
-void BasicGamesProxy::unload(const QString& identifier)
-{
- auto it = m_loaded.find(identifier);
- if (it != m_loaded.end()) {
- qDeleteAll(it.value());
- m_loaded.erase(it);
- }
-}