real arg parse

This commit is contained in:
SpikeHD
2023-04-21 16:50:53 -07:00
parent 48dff50a5d
commit a67eca49e5
4 changed files with 83 additions and 34 deletions

View File

@@ -4,27 +4,27 @@ use std::string::String;
#[derive(Serialize, Deserialize, Debug)]
pub struct Configuration {
toggle_grasscutter: bool,
game_install_path: String,
grasscutter_with_game: bool,
grasscutter_path: String,
java_path: String,
close_action: u64,
startup_launch: bool,
last_ip: String,
last_port: u64,
language: String,
customBackground: String,
cert_generated: bool,
theme: String,
https_enabled: bool,
debug_enabled: bool,
patch_rsa: bool,
use_internal_proxy: bool,
wipe_login: bool,
horny_mode: bool,
auto_mongodb: bool,
un_elevated: bool,
pub toggle_grasscutter: bool,
pub game_install_path: String,
pub grasscutter_with_game: bool,
pub grasscutter_path: String,
pub java_path: String,
pub close_action: u64,
pub startup_launch: bool,
pub last_ip: String,
pub last_port: u64,
pub language: String,
pub customBackground: String,
pub cert_generated: bool,
pub theme: String,
pub https_enabled: bool,
pub debug_enabled: bool,
pub patch_rsa: bool,
pub use_internal_proxy: bool,
pub wipe_login: bool,
pub horny_mode: bool,
pub auto_mongodb: bool,
pub un_elevated: bool,
}
pub fn config_path() -> PathBuf {