aboutsummaryrefslogtreecommitdiff
path: root/libs/installer_fomod_csharp/src/csharp_interface.h
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/installer_fomod_csharp/src/csharp_interface.h
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/installer_fomod_csharp/src/csharp_interface.h')
-rw-r--r--libs/installer_fomod_csharp/src/csharp_interface.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libs/installer_fomod_csharp/src/csharp_interface.h b/libs/installer_fomod_csharp/src/csharp_interface.h
new file mode 100644
index 0000000..4f22c20
--- /dev/null
+++ b/libs/installer_fomod_csharp/src/csharp_interface.h
@@ -0,0 +1,40 @@
+#ifndef CSHARP_INTERFACE_H
+#define CSHARP_INTERFACE_H
+
+#include <map>
+
+#include <uibase/ifiletree.h>
+#include <uibase/iplugininstaller.h>
+
+namespace CSharp
+{
+
+void init(MOBase::IOrganizer* moInfo);
+
+/**
+ * @brief Initialize the C# interface before starting an installation.
+ *
+ * @param installer The FOMOD C# installer.
+ * @param manager The installation manager from the installer.
+ * @param parentWidget The parent widget from the installer.
+ * @param tree The archive tree.
+ * @param extractedEntries A map from extracted entries to their extracted path.
+ */
+void beforeInstall(
+ MOBase::IPlugin const* installer, MOBase::IInstallationManager* manager,
+ QWidget* parentWidget, std::shared_ptr<MOBase::IFileTree> tree,
+ std::map<std::shared_ptr<const MOBase::FileTreeEntry>, QString> extractedEntries);
+
+/**
+ * @brief Clear the C# interface after an installation.
+ *
+ * @param scriptPath Path to the script to execute.
+ * @param tree Reference where the final tree will be stored (in case of success.
+ *
+ * @return the installation result after performing post-installation.
+ */
+MOBase::IPluginInstaller::EInstallResult
+executeCSharpScript(QString scriptPath, std::shared_ptr<MOBase::IFileTree>& tree);
+
+} // namespace CSharp
+#endif