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:
parent
31baa1b113
commit
316dc33607
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user