From 2263d2c0136346d96ef1978fa872a2ffc613dcc0 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Sun, 16 Jul 2023 19:11:12 +0200 Subject: commit current dirty working tree --- src-tauri/src/main.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src-tauri/src/main.rs') 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, 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 -- cgit v1.2.3