Skip to content

Commit

Permalink
Update folder check
Browse files Browse the repository at this point in the history
  • Loading branch information
NotThorny committed Sep 16, 2023
1 parent 7a41753 commit 3937168
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/components/menu/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,11 @@ export default class Options extends React.Component<IProps, IState> {
const pathArr = this.state.game_install_path.replace(/\\/g, '/').split('/')
pathArr.pop()
const path = pathArr.join('/') + '/GenshinImpact_Data/webCaches'
const path2 = pathArr.join('/') + '/Yuanshen_Data/webCaches'

// Delete the folder
await invoke('dir_delete', { path: path })
await invoke('dir_delete', { path: path2 })
}

async toggleOption(opt: keyof Configuration) {
Expand Down

0 comments on commit 3937168

Please sign in to comment.