This commit is contained in:
2021-04-26 01:12:37 +02:00
parent 356173e818
commit 02771afda1
6 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -14,7 +14,7 @@ namespace EvilSatellites
public static bool PreferSAPI = true;
public static bool UseForceFeedback = true;
public static bool EnableAI = true;
public static float MusicVolume = 0.2f;
public static void SaveSettings()
{
if (!Directory.Exists(SettingsDirectory))
@@ -27,6 +27,7 @@ namespace EvilSatellites
file.Write(PreferSAPI);
file.Write(UseForceFeedback);
file.Write(EnableAI);
file.Write(MusicVolume);
file.Close();
} catch (Exception e)
{
@@ -51,6 +52,7 @@ namespace EvilSatellites
PreferSAPI = file.ReadBoolean();
UseForceFeedback = file.ReadBoolean();
EnableAI = file.ReadBoolean();
MusicVolume = (float)file.ReadSingle();
file.Close();
} catch (Exception e)
{