Skip to content

Commit

Permalink
Skip patching on other anime games
Browse files Browse the repository at this point in the history
  • Loading branch information
NotThorny committed Jun 25, 2023
1 parent f0ec129 commit 4abc2d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ui/components/ServerLaunchSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4abc2d8

Please sign in to comment.