diff options
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 5d71713a..71d5d6f0 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -477,6 +477,20 @@ pub struct GameInstall { pub install_type: InstallType, } +/// Describes whether a mod +/// - is a core mod +/// - follows the old legacy format +/// - was manually installe +/// - or is part of the newer package system +#[derive(Serialize, Deserialize, Debug, Clone, TS)] +#[ts(export)] +pub enum LegacyOrPackage { + CORE, + LEGACY, + MANUAL, + PACKAGE, +} + #[derive(Serialize, Deserialize, Debug, Clone, TS)] #[ts(export)] pub struct NorthstarMod { @@ -485,6 +499,7 @@ pub struct NorthstarMod { pub thunderstore_mod_string: Option<String>, pub enabled: bool, pub directory: String, + // pub install_type: LegacyOrPackage, } // I intend to add more linux related stuff to check here, so making a func |