aboutsummaryrefslogtreecommitdiff
path: root/launcher/src/lib.rs
blob: 9e2ef8bc7533c05500aa60db1388fa3d950315c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
        }
    }
}