From 316dc3360702367ebfbab2b2c16681ae124c2847 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 7 Jan 2025 14:47:20 +0000 Subject: [PATCH] Fix registry patches not saving to disk - found by Kaeno --- project/SPT.Custom/Patches/SaveRegistryToSptFolderPatches.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/SPT.Custom/Patches/SaveRegistryToSptFolderPatches.cs b/project/SPT.Custom/Patches/SaveRegistryToSptFolderPatches.cs index daca92d..166a38f 100644 --- a/project/SPT.Custom/Patches/SaveRegistryToSptFolderPatches.cs +++ b/project/SPT.Custom/Patches/SaveRegistryToSptFolderPatches.cs @@ -75,6 +75,7 @@ namespace SPT.Custom.Patches private static bool PatchPrefix(string key, int value) { _sptRegistry[key] = value; + PlayerPrefs.Save(); return false; } } @@ -91,6 +92,7 @@ namespace SPT.Custom.Patches private static bool PatchPrefix(string key, float value) { _sptRegistry[key] = value; + PlayerPrefs.Save(); return false; } } @@ -107,6 +109,7 @@ namespace SPT.Custom.Patches private static bool PatchPrefix(string key, string value) { _sptRegistry[key] = value; + PlayerPrefs.Save(); return false; } }