This commit is contained in:
Frog Business 2024-09-28 16:01:10 +02:00 committed by GitHub
commit 8517bd75b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -741,6 +741,11 @@ namespace Ryujinx.HLE.HOS
internal static void EnableCheats(ulong applicationId, TamperMachine tamperMachine)
{
var contentDirectory = FindApplicationDir(new DirectoryInfo(Path.Combine(GetModsBasePath(), AmsContentsDir)), $"{applicationId:x16}");
if (contentDirectory == null)
{
return;
}
string enabledCheatsPath = Path.Combine(contentDirectory.FullName, CheatDir, "enabled.txt");
if (File.Exists(enabledCheatsPath))