Reset in-memory JIT cache on game quit + fix Purge PPTC

Jit cache now fully resets when booting a game multiple times.
This should fix random jit cache crashes.
Also removed some redundant code related to region allocation and fixed
PPTC Purge not fully purging all PPTC files in the backup folder.
This commit is contained in:
LotP1 2025-02-25 22:34:21 +01:00 committed by KeatonTheBot
parent 51f26f89a5
commit 62a54c63b8
3 changed files with 56 additions and 29 deletions

View file

@ -229,7 +229,7 @@ namespace Ryujinx.Ava.UI.Controls
if (backupDir.Exists)
{
cacheFiles.AddRange(backupDir.EnumerateFiles("*.cache"));
cacheFiles.AddRange(mainDir.EnumerateFiles("*.info"));
cacheFiles.AddRange(backupDir.EnumerateFiles("*.info"));
}
if (cacheFiles.Count > 0)