mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
conditionally wipe reg
This commit is contained in:
@@ -185,11 +185,13 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// First wipe registry if we have to
|
if (config.wipe_login) {
|
||||||
await invoke('wipe_registry', {
|
// First wipe registry if we have to
|
||||||
// The exe is always PascalCase so we can get the dir using regex
|
await invoke('wipe_registry', {
|
||||||
execName: (await getGameExecutable())?.split('.exe')[0].replace(/([a-z\d])([A-Z])/g, '$1 $2'),
|
// The exe is always PascalCase so we can get the dir using regex
|
||||||
})
|
execName: (await getGameExecutable())?.split('.exe')[0].replace(/([a-z\d])([A-Z])/g, '$1 $2'),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Launch the program
|
// Launch the program
|
||||||
const gameExists = await invoke('dir_exists', {
|
const gameExists = await invoke('dir_exists', {
|
||||||
|
|||||||
Reference in New Issue
Block a user