feat: port to Microsoft Windows

This commit is contained in:
2025-02-23 18:12:20 +00:00
parent a29bce2227
commit caead1e70f
12 changed files with 145 additions and 26 deletions

View File

@ -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(),