mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
Linting & prettier
Bump version
This commit is contained in:
@@ -107,9 +107,9 @@ async fn parse_args(inp: &Vec<String>) -> Result<Args, ArgsError> {
|
||||
|
||||
if game_path.is_some() {
|
||||
if args.value_of("non-elevated-game")? {
|
||||
system_helpers::run_un_elevated(game_path.unwrap().to_string(), Some(game_args))
|
||||
system_helpers::run_un_elevated(game_path.unwrap(), Some(game_args))
|
||||
} else {
|
||||
system_helpers::run_program(game_path.unwrap().to_string(), Some(game_args))
|
||||
system_helpers::run_program(game_path.unwrap(), Some(game_args))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,9 +53,7 @@ pub async fn unpatch_game() -> bool {
|
||||
pub async fn get_game_rsa_path() -> Option<String> {
|
||||
let config = config::get_config();
|
||||
|
||||
if config.game_install_path.is_none() {
|
||||
return None;
|
||||
}
|
||||
config.game_install_path.as_ref()?;
|
||||
|
||||
let mut game_folder = PathBuf::from(config.game_install_path.unwrap());
|
||||
game_folder.pop();
|
||||
|
||||
@@ -6,8 +6,7 @@ pub struct Release {
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn get_latest_release() -> Release {
|
||||
// NotThorny edition requests to repo so as to avoid update spam from official repo -alpha version diff.
|
||||
let url = "https://api.github.com/repos/NotThorny/Cultivation/releases/latest";
|
||||
let url = "https://api.github.com/repos/Grasscutters/Cultivation/releases/latest";
|
||||
let client = reqwest::Client::new();
|
||||
let response = client
|
||||
.get(url)
|
||||
@@ -17,6 +16,7 @@ pub async fn get_latest_release() -> Release {
|
||||
.unwrap();
|
||||
let text = response.text().await.unwrap();
|
||||
|
||||
// This includes ip when github rate limits you, so avoid it for now to avoid leaks through screenshots
|
||||
//println!("Response: {}", text);
|
||||
|
||||
// Parse "tag_name" from JSON
|
||||
|
||||
@@ -230,7 +230,7 @@ pub fn service_status(service: String) -> bool {
|
||||
}
|
||||
};
|
||||
let status_result = my_service.query_status();
|
||||
if status_result.is_ok() {
|
||||
if let Ok(..) = status_result {
|
||||
let status = status_result.unwrap();
|
||||
println!("{} service status: {:?}", service, status.current_state);
|
||||
if status.current_state == Stopped {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "Cultivation",
|
||||
"version": "1.0.26"
|
||||
"version": "1.0.27"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
|
||||
Reference in New Issue
Block a user