mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 17:14:36 +01:00
delete backed up meta when patch is unsuccessful against it
This commit is contained in:
@@ -35,6 +35,11 @@ export async function patchMetadata() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (!patchedMeta) {
|
if (!patchedMeta) {
|
||||||
|
// Remove metadata backup, in case it invalid or something
|
||||||
|
await invoke('delete_file', {
|
||||||
|
path: (await getBackupMetadataPath()) + '\\global-metadata-unpatched.dat',
|
||||||
|
})
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user