Updates
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace EvilSatellites
|
||||
public MusicManager(Synthy engine)
|
||||
{
|
||||
Engine = engine;
|
||||
_Volume = 0.2f;
|
||||
_Volume = GameSettings.MusicVolume;
|
||||
IsPlaying = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user