Skip patching on other anime games

This commit is contained in:
Thoronium
2023-06-25 12:44:57 -06:00
parent db6f23dbad
commit 38436472e3

View File

@@ -119,7 +119,11 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
// Connect to proxy
if (config.toggle_grasscutter) {
if (config.patch_rsa) {
const game_exe = await getGameExecutable()
const patchable = game_exe?.toLowerCase().includes('genshin' || 'yuanshen')
if (config.patch_rsa && patchable) {
const gameVersion = await getGameVersion()
console.log(gameVersion)
@@ -148,8 +152,6 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
}
}
const game_exe = await getGameExecutable()
// Save last connected server and port
await setConfigOption('last_ip', this.state.ip)
await setConfigOption('last_port', this.state.port)