Skip to content

Commit

Permalink
Improve saving of GameMode
Browse files Browse the repository at this point in the history
  • Loading branch information
leezer3 committed Jan 6, 2025
1 parent 9220454 commit 3e2c268
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions source/OpenBVE/System/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,23 +316,7 @@ public override void Save(string fileName)
Builder.AppendLine("derailments = " + (Derailments ? "true" : "false"));
Builder.AppendLine("loadingsway = " + (LoadingSway ? "true" : "false"));
Builder.AppendLine("blackbox = " + (BlackBox ? "true" : "false"));
Builder.AppendLine("mode = ");
switch (GameMode)
{
case GameMode.Arcade:
Builder.AppendLine("arcade");
break;
case GameMode.Normal:
Builder.AppendLine("normal");
break;
case GameMode.Expert:
Builder.AppendLine("expert");
break;
default:
Builder.AppendLine("normal");
break;
}

Builder.AppendLine("mode = " + GameMode);
Builder.AppendLine("acceleratedtimefactor = " + TimeAccelerationFactor);
Builder.AppendLine("enablebvetshacks = " + (EnableBveTsHacks ? "true" : "false"));
Builder.AppendLine("enablebve5scriptedtrain = " + (EnableBve5ScriptedTrain ? "true" : "false"));
Expand Down

0 comments on commit 3e2c268

Please sign in to comment.