open with cwd, restore akebi option stuff

This commit is contained in:
SpikeHD
2022-07-21 19:49:51 -07:00
parent 818896c734
commit 1b076ccea9
4 changed files with 24 additions and 1 deletions

View File

@@ -157,7 +157,7 @@ export default class ServerLaunchSection extends React.Component<{}, IState> {
path: exe || config.game_install_path,
})
if (gameExists) await invoke('run_program', { path: exe || config.game_install_path })
if (gameExists) await invoke('run_program_relative', { path: exe || config.game_install_path })
else alert('Game not found! At: ' + (exe || config.game_install_path))
}

View File

@@ -308,6 +308,9 @@ export default class Options extends React.Component<IProps, IState> {
<div className="OptionLabel" id="menuOptionsLabelAkebi">
<Tr text="swag.akebi" />
</div>
<div className="OptionValue" id="menuOptionsDirMigoto">
<DirInput onChange={this.setAkebi} value={this.state?.akebi_path} extensions={['exe']} />
</div>
</div>
</>
)}