Remove unnecessary passing of args

This commit is contained in:
Thoronium
2023-09-28 13:17:48 -06:00
parent 5db28756d2
commit 680c6b04a4

View File

@@ -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', {