diff options
Diffstat (limited to 'launcher/src/lib.rs')
-rw-r--r-- | launcher/src/lib.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/launcher/src/lib.rs b/launcher/src/lib.rs new file mode 100644 index 0000000..9e2ef8b --- /dev/null +++ b/launcher/src/lib.rs @@ -0,0 +1,16 @@ +use std::ffi::OsStr; +use std::path::PathBuf; + +pub enum AppData { + Folder(PathBuf), + Asar(PathBuf) +} + +impl AppData { + pub fn get_path(&self) -> &OsStr { + match self { + AppData::Folder(path) => path.as_ref(), + AppData::Asar(path) => path.as_ref() + } + } +} |