Files
Nitrox/Nitrox.Launcher/Models/Extensions/KeyValueStoreExtensions.cs
2025-07-06 00:23:46 +02:00

18 lines
566 B
C#

using NitroxModel.Helper;
namespace Nitrox.Launcher.Models.Extensions;
public static class KeyValueStoreExtensions
{
public static string GetSubnauticaLaunchArguments(this IKeyValueStore store, string defaultValue = "-vrmode none") => store == null ? defaultValue : store.GetValue("SubnauticaLaunchArguments", defaultValue);
public static void SetSubnauticaLaunchArguments(this IKeyValueStore store, string value)
{
if (store == null)
{
return;
}
store.SetValue("SubnauticaLaunchArguments", value);
}
}