Skip to content

Commit

Permalink
修正自定义参数问题
Browse files Browse the repository at this point in the history
修正 scl-webview 依赖问题
  • Loading branch information
Steve-xmh committed Nov 4, 2023
1 parent 9da8425 commit 3a4a1e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scl-core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ impl Client {
args.push("-Dlog4j2.formatMsgNoLookups=true".into());

// 用户自定义JVM参数
for arg in &cfg.custom_java_args {
args.push(arg.to_owned());
}
if let Some(scl_config) = &cfg.version_info.scl_launch_config {
if !scl_config.jvm_args.trim().is_empty() {
if let Ok(jvm_args) = shell_words::split(&scl_config.jvm_args) {
Expand Down Expand Up @@ -520,6 +523,9 @@ impl Client {
}

// 用户自定义游戏参数
for arg in &cfg.custom_args {
args.push(arg.to_owned());
}
if let Some(scl_config) = &cfg.version_info.scl_launch_config {
if !scl_config.game_args.trim().is_empty() {
if let Ok(game_args) = shell_words::split(&scl_config.game_args) {
Expand Down
2 changes: 1 addition & 1 deletion scl-webview/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tracing = "0.1.40"

[target.'cfg(target_os = "windows")'.dependencies]
webview2 = "^0.1"
winapi = { version = "*", features = ["winuser", "libloaderapi", "synchapi"] }
winapi = { version = "*", features = ["winuser", "libloaderapi", "synchapi", "winbase"] }

[target.'cfg(target_os = "macos")'.dependencies]
libc = "*"
Expand Down

0 comments on commit 3a4a1e2

Please sign in to comment.