mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2026-03-21 21:58:52 +00:00
remove warning
This commit is contained in:
parent
f87289be54
commit
245e042560
@ -79,7 +79,7 @@ impl GameComponent {
|
|||||||
match v {
|
match v {
|
||||||
Some(str) => {
|
Some(str) => {
|
||||||
if str == "done" {
|
if str == "done" {
|
||||||
if let Ok(size) = current_size {
|
if let Ok(_size) = current_size {
|
||||||
progress.done();
|
progress.done();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
use std::{path::PathBuf, sync::Arc, process::{Command, Stdio}, io::{BufReader, BufRead}};
|
use std::{path::PathBuf, sync::Arc, process::{Command, Stdio}, io::{BufReader, BufRead}};
|
||||||
|
|
||||||
use dirs::config_dir;
|
|
||||||
use downloader::progress::Reporter;
|
use downloader::progress::Reporter;
|
||||||
use log::{debug, info};
|
use log::{debug, info};
|
||||||
use tokio::fs::create_dir_all;
|
use tokio::fs::create_dir_all;
|
||||||
@ -12,7 +11,7 @@ use crate::{
|
|||||||
game_component::GameComponent, proton_component::ProtonComponent,
|
game_component::GameComponent, proton_component::ProtonComponent,
|
||||||
},
|
},
|
||||||
game_patcher,
|
game_patcher,
|
||||||
game_state::{GameConfig, GameState},
|
game_state::GameState,
|
||||||
utils::{get_game_name, get_game_name_with_executable, github_requester::GithubRequester},
|
utils::{get_game_name, get_game_name_with_executable, github_requester::GithubRequester},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -175,7 +174,7 @@ impl GameManager {
|
|||||||
|
|
||||||
let mut child = if let Some(custom_command) = options {
|
let mut child = if let Some(custom_command) = options {
|
||||||
debug!("Starting game with --options -> {}", custom_command);
|
debug!("Starting game with --options -> {}", custom_command);
|
||||||
let mut tokens: Vec<&str> = custom_command.split_whitespace().collect();
|
let tokens: Vec<&str> = custom_command.split_whitespace().collect();
|
||||||
|
|
||||||
// position of the %command%
|
// position of the %command%
|
||||||
let index = tokens.iter().position(|&s| s == "%command%").expect("You forget to put %command% in your custom launch command");
|
let index = tokens.iter().position(|&s| s == "%command%").expect("You forget to put %command% in your custom launch command");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user