diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index 942a837..ad038a0 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -119,7 +119,11 @@ export default class ServerLaunchSection extends React.Component // 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 } } - 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)