From e0fb66428a9b78b4c326df8d7e30429a5b271d74 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Sun, 12 Apr 2026 02:40:00 -0500 Subject: Remove dead plugin scaffolds and duplicate lib dirs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- libs/basic_games_native/src/basicgamesproxy.cpp | 99 ------------------------- 1 file changed, 99 deletions(-) delete mode 100644 libs/basic_games_native/src/basicgamesproxy.cpp (limited to 'libs/basic_games_native/src/basicgamesproxy.cpp') 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 - -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 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 BasicGamesProxy::load(const QString& identifier) -{ - // Already loaded? - auto it = m_loaded.find(identifier); - if (it != m_loaded.end()) { - return it.value(); - } - - QList 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(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); - } -} -- cgit v1.3.1