From 38436472e3e41b4ac3b7ddde75ba909110bb6925 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sun, 25 Jun 2023 12:44:57 -0600 Subject: [PATCH] Skip patching on other anime games --- src/ui/components/ServerLaunchSection.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)