mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
Update Grasscutter versions
Add auto MongoDB option
This commit is contained in:
@@ -68,6 +68,7 @@ export class Main extends React.Component<IProps, IState> {
|
||||
// Emitted for rsa replacing-purposes
|
||||
listen('game_closed', async () => {
|
||||
const wasPatched = await getConfigOption('patch_rsa')
|
||||
const autoService = await getConfigOption('auto_mongodb')
|
||||
|
||||
if (wasPatched) {
|
||||
const unpatched = await unpatchGame()
|
||||
@@ -76,6 +77,10 @@ export class Main extends React.Component<IProps, IState> {
|
||||
alert(`Could not unpatch game! (Delete version.dll in your game folder)`)
|
||||
}
|
||||
}
|
||||
|
||||
if (autoService) {
|
||||
await invoke('stop_service', { service: 'MongoDB' })
|
||||
}
|
||||
})
|
||||
|
||||
let min = false
|
||||
|
||||
Reference in New Issue
Block a user