Skip to content

Commit

Permalink
Fix Console preset not being recognized in a NVL_in_ADV region
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Aug 20, 2022
1 parent 0f66d35 commit 61faf82
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion MOD.Scripts.UI/MODActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,19 @@ public static int GetADVNVLRyukishiModeFromFlags(out bool presetModified)
BurikoMemory.Instance.GetGlobalFlag("GBackgroundSet").IntValue() != 0 ||
BurikoMemory.Instance.GetGlobalFlag("GArtStyle").IntValue() != 0 ||
BurikoMemory.Instance.GetGlobalFlag("GADVMode").IntValue() != 1 ||
BurikoMemory.Instance.GetGlobalFlag("GLinemodeSp").IntValue() != 0 ||
BurikoMemory.Instance.GetGlobalFlag("GRyukishiMode").IntValue() != 0 ||
BurikoMemory.Instance.GetGlobalFlag("GHideCG").IntValue() != 0 ||
BurikoMemory.Instance.GetGlobalFlag("GStretchBackgrounds").IntValue() != 0;

// Only check the value of GLinemodeSp if you're not in an NVL_in_ADV region
if (BurikoMemory.Instance.GetFlag("NVL_in_ADV").IntValue() == 0)
{
if(BurikoMemory.Instance.GetGlobalFlag("GLinemodeSp").IntValue() != 0)
{
presetModified = true;
}
}

return 0;
}
else
Expand Down

0 comments on commit 61faf82

Please sign in to comment.