aboutsummaryrefslogtreecommitdiff
path: root/libs/rootbuilder_native/src/rootbuilder.h
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/rootbuilder_native/src/rootbuilder.h
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/rootbuilder_native/src/rootbuilder.h')
-rw-r--r--libs/rootbuilder_native/src/rootbuilder.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/libs/rootbuilder_native/src/rootbuilder.h b/libs/rootbuilder_native/src/rootbuilder.h
deleted file mode 100644
index 121bcc1..0000000
--- a/libs/rootbuilder_native/src/rootbuilder.h
+++ /dev/null
@@ -1,79 +0,0 @@
-#ifndef ROOTBUILDER_NATIVE_H
-#define ROOTBUILDER_NATIVE_H
-
-#include <uibase/iplugintool.h>
-
-#include <QJsonObject>
-#include <QString>
-
-class RootBuilderNative : public MOBase::IPluginTool
-{
- Q_OBJECT
- Q_INTERFACES(MOBase::IPlugin MOBase::IPluginTool)
- Q_PLUGIN_METADATA(IID "com.tannin.ModOrganizer.PluginTool/1.0")
-
-public:
- RootBuilderNative();
-
- // IPlugin
- bool init(MOBase::IOrganizer* organizer) override;
- QString name() const override;
- QString localizedName() const override;
- QString author() const override;
- QString description() const override;
- MOBase::VersionInfo version() const override;
- QList<MOBase::PluginSetting> settings() const override;
- bool enabledByDefault() const override;
-
- // IPluginTool
- QString displayName() const override;
- QString tooltip() const override;
- QIcon icon() const override;
-
-public slots:
- void display() const override;
-
-private:
- // Storage paths
- QString storageDir() const;
- QString backupDir() const;
- QString manifestPath() const;
- QString settingsPath() const;
-
- // Settings (own JSON, not pluginSetting)
- QJsonObject loadSettings() const;
- void saveSettings(const QJsonObject& settings) const;
- bool isAutoEnabled() const;
-
- // Manifest
- QJsonObject loadManifest() const;
- void saveManifest(const QJsonObject& manifest) const;
- void removeManifest() const;
-
- // Legacy migration
- void migrateLegacy() const;
-
- // Third-party conflict detection
- void checkThirdPartyRootBuilder() const;
-
- // Build / Clear
- int build() const;
- int clear() const;
-
- // File operations
- static QString findRootDir(const QString& modPath);
- static void reflinkCopy(const QString& src, const QString& dst);
- static void ensureReadable(const QString& path);
- static void ensureWritable(const QString& path);
- static bool forceRemove(const QString& path);
- static void cleanupEmptyDirs(const QString& baseDir,
- const QStringList& paths);
-
- // Hooks
- bool onAboutToRun(const QString& executable);
- void onFinishedRun(const QString& executable, unsigned int exitCode);
-
- MOBase::IOrganizer* m_organizer = nullptr;
-};
-
-#endif // ROOTBUILDER_NATIVE_H