mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-25 11:08:15 +03:00
Added .dmp and .dxvk-cache deletion if option enabled
This commit is contained in:
parent
235a827642
commit
3e17ada28b
2 changed files with 8 additions and 2 deletions
|
@ -24,7 +24,7 @@ Download AppImage from [Releases](https://notabug.org/nobody/an-anime-game-launc
|
||||||
|
|
||||||
### For arch users
|
### For arch users
|
||||||
|
|
||||||
This launcher also available as the [an-anime-game-launcher](https://aur.archlinux.org/packages/an-anime-game-launcher) AUR repository
|
This launcher is also available as the [an-anime-game-launcher](https://aur.archlinux.org/packages/an-anime-game-launcher) AUR repository
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
|
@ -238,8 +238,14 @@ $(() => {
|
||||||
|
|
||||||
if (LauncherLib.getConfig('autodelete_dxvk_logs'))
|
if (LauncherLib.getConfig('autodelete_dxvk_logs'))
|
||||||
{
|
{
|
||||||
|
const removeExts = [
|
||||||
|
'.log',
|
||||||
|
'.dxvk-cache',
|
||||||
|
'.dmp'
|
||||||
|
];
|
||||||
|
|
||||||
fs.readdirSync(constants.gameDir).forEach((file: string) => {
|
fs.readdirSync(constants.gameDir).forEach((file: string) => {
|
||||||
if (path.extname(file) == '.log')
|
if (removeExts.includes(path.extname(file)))
|
||||||
{
|
{
|
||||||
fs.unlinkSync(path.join(constants.gameDir, file));
|
fs.unlinkSync(path.join(constants.gameDir, file));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue