0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

Fix registry patches not saving to disk - found by Kaeno

This commit is contained in:
Chomp 2025-01-07 14:47:20 +00:00
parent 31baa1b113
commit 316dc33607

View File

@ -75,6 +75,7 @@ namespace SPT.Custom.Patches
private static bool PatchPrefix(string key, int value) private static bool PatchPrefix(string key, int value)
{ {
_sptRegistry[key] = value; _sptRegistry[key] = value;
PlayerPrefs.Save();
return false; return false;
} }
} }
@ -91,6 +92,7 @@ namespace SPT.Custom.Patches
private static bool PatchPrefix(string key, float value) private static bool PatchPrefix(string key, float value)
{ {
_sptRegistry[key] = value; _sptRegistry[key] = value;
PlayerPrefs.Save();
return false; return false;
} }
} }
@ -107,6 +109,7 @@ namespace SPT.Custom.Patches
private static bool PatchPrefix(string key, string value) private static bool PatchPrefix(string key, string value)
{ {
_sptRegistry[key] = value; _sptRegistry[key] = value;
PlayerPrefs.Save();
return false; return false;
} }
} }