Compare commits

..

2 Commits

Author SHA1 Message Date
LotP
4c9e8f8e5c reset infoStreams when the cache is invalid
See merge request ryubing/ryujinx!23
2025-04-22 21:42:41 -05:00
LotP
e33dc6f096 fix all mods always active
See merge request ryubing/ryujinx!22
2025-04-22 20:06:15 -05:00
2 changed files with 5 additions and 2 deletions

View File

@@ -566,6 +566,9 @@ namespace ARMeilleure.Translation.PTC
{
if (AreCarriersEmpty() || ContainsBlacklistedFunctions())
{
_infosStream.SetLength(0);
_relocsStream.SetLength(0);
_unwindInfosStream.SetLength(0);
return;
}

View File

@@ -171,7 +171,7 @@ namespace Ryujinx.HLE.HOS
if (StrEquals(RomfsDir, modDir.Name))
{
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Equals(x.Path));
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.Parent.FullName.Equals(x.Path));
bool enabled = modData?.Enabled ?? true;
mods.RomfsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
@@ -179,7 +179,7 @@ namespace Ryujinx.HLE.HOS
}
else if (StrEquals(ExefsDir, modDir.Name))
{
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Equals(x.Path));
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.Parent.FullName.Equals(x.Path));
bool enabled = modData?.Enabled ?? true;
mods.ExefsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));