Update folder check

This commit is contained in:
Thoronium
2023-09-16 17:14:44 -06:00
parent 73a9e18712
commit 1c7293578c

View File

@@ -344,9 +344,11 @@ export default class Options extends React.Component<IProps, IState> {
const pathArr = this.state.game_install_path.replace(/\\/g, '/').split('/') const pathArr = this.state.game_install_path.replace(/\\/g, '/').split('/')
pathArr.pop() pathArr.pop()
const path = pathArr.join('/') + '/GenshinImpact_Data/webCaches' const path = pathArr.join('/') + '/GenshinImpact_Data/webCaches'
const path2 = pathArr.join('/') + '/Yuanshen_Data/webCaches'
// Delete the folder // Delete the folder
await invoke('dir_delete', { path: path }) await invoke('dir_delete', { path: path })
await invoke('dir_delete', { path: path2 })
} }
async toggleOption(opt: keyof Configuration) { async toggleOption(opt: keyof Configuration) {