mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
real arg parse
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user