mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
Remove unnecessary passing of args
This commit is contained in:
@@ -219,10 +219,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
} else {
|
} else {
|
||||||
if (config.launch_args.length < 1) {
|
if (config.launch_args.length < 1) {
|
||||||
// Run relative when there are no args
|
// Run relative when there are no args
|
||||||
await invoke('run_program_relative', {
|
await invoke('run_program_relative', { path: exe || config.game_install_path })
|
||||||
path: exe || config.game_install_path,
|
|
||||||
args: config.launch_args,
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
// Run directly when there are args
|
// Run directly when there are args
|
||||||
await invoke('run_program', {
|
await invoke('run_program', {
|
||||||
|
|||||||
Reference in New Issue
Block a user