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
+1 -1
View File
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<PublishReadyToRun>false</PublishReadyToRun>
<TieredCompilation>false</TieredCompilation>
+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)
{
+1 -1
View File
@@ -28,7 +28,7 @@ namespace EvilSatellites
public MusicManager(Synthy engine)
{
Engine = engine;
_Volume = 0.2f;
_Volume = GameSettings.MusicVolume;
IsPlaying = false;
}