mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-21 21:43:26 +00:00
fix saving default preset only
This commit is contained in:
1 parent
0907b14893
commit
a96ffc42f2
1 file changed
+4
-8
@@ -131,15 +131,11 @@ internal static class GamePresetsTabPatches
|
||||
}
|
||||
|
||||
var presetFile = new ConfigFile(
|
||||
Path.Join(
|
||||
PresetManager.PresetDirectory,
|
||||
GameSettingMenuPatches.SelectedMod.PluginId,
|
||||
$"{name}.cfg"),
|
||||
true);
|
||||
foreach (var option in GameSettingMenuPatches.SelectedMod.InternalOptions.Where(
|
||||
x => x.IncludeInPreset))
|
||||
Path.Join(PresetManager.PresetDirectory, GameSettingMenuPatches.SelectedMod.PluginId, $"{name}.cfg"),
|
||||
false);
|
||||
foreach (var option in GameSettingMenuPatches.SelectedMod.InternalOptions.Where(x => x.IncludeInPreset))
|
||||
{
|
||||
option.SaveToPreset(presetFile, true);
|
||||
option.SaveToPreset(presetFile);
|
||||
}
|
||||
|
||||
presetFile.Save();
|
||||
|
||||
Reference in new issue
Block a user