diff options
author | RaindropsSys <raindrops@equestria.dev> | 2024-05-10 22:41:19 +0200 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2024-05-10 22:41:19 +0200 |
commit | e98145ba554d9e8396dea96e466c14db10e988fc (patch) | |
tree | bbbc84a45007dbbfacf99f6daa21a85024401fa0 /launcher/src/lib.rs | |
parent | 77472e57d0ce3f7e6420017225b3bdfbe1ac9050 (diff) | |
download | atomic-e98145ba554d9e8396dea96e466c14db10e988fc.tar.gz atomic-e98145ba554d9e8396dea96e466c14db10e988fc.tar.bz2 atomic-e98145ba554d9e8396dea96e466c14db10e988fc.zip |
Crappy code fix 12/?
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() + } + } +} |