diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-16 19:11:12 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-16 19:11:12 +0200 |
commit | 2263d2c0136346d96ef1978fa872a2ffc613dcc0 (patch) | |
tree | 86ade7754f06b97527c3a54ae09be64ebef9e739 /src-tauri/src/main.rs | |
parent | c8be2cc35d9440260e57c1169a8bffc81f16c2e9 (diff) | |
download | FlightCore-2263d2c0136346d96ef1978fa872a2ffc613dcc0.tar.gz FlightCore-2263d2c0136346d96ef1978fa872a2ffc613dcc0.zip |
commit current dirty working treetemp/dev
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 |