forked from akanyan/STARTLINER
feat: port to Microsoft Windows
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use std::{collections::HashSet, path::{Path, PathBuf}};
|
||||
use std::{collections::HashSet, path::PathBuf};
|
||||
|
||||
use crate::{model::misc, pkg::PkgKey, util};
|
||||
use serde::{Deserialize, Serialize};
|
||||
@ -10,7 +10,7 @@ use tokio::fs;
|
||||
#[allow(dead_code)]
|
||||
pub struct Profile {
|
||||
pub game: misc::Game,
|
||||
pub path: PathBuf,
|
||||
pub exe_dir: PathBuf,
|
||||
pub name: String,
|
||||
pub mods: HashSet<PkgKey>,
|
||||
pub wine_runtime: Option<PathBuf>,
|
||||
@ -18,10 +18,10 @@ pub struct Profile {
|
||||
}
|
||||
|
||||
impl Profile {
|
||||
pub fn new(path: PathBuf) -> Profile {
|
||||
pub fn new(exe_path: PathBuf) -> Profile {
|
||||
Profile {
|
||||
game: misc::Game::Ongeki,
|
||||
path: path.parent().unwrap().to_owned(),
|
||||
exe_dir: exe_path.parent().unwrap().to_owned(),
|
||||
name: "ongeki-default".to_owned(),
|
||||
mods: HashSet::new(),
|
||||
|
||||
|
Reference in New Issue
Block a user