Skip to content

Commit

Permalink
v0.3.2.3: Fixed "cleanbuild" crashing if server log folder doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalis committed Feb 16, 2016
1 parent dd73887 commit 8129aa2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Subsurface/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.2.2")]
[assembly: AssemblyFileVersion("0.3.2.2")]
[assembly: AssemblyVersion("0.3.2.3")]
[assembly: AssemblyFileVersion("0.3.2.3")]
16 changes: 10 additions & 6 deletions Subsurface/Source/DebugConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,16 @@ public static void ExecuteCommand(string command, GameMain game)
DebugConsole.NewMessage("Deleted "+saveFile, Color.Green);
}

var logFiles = System.IO.Directory.GetFiles(ServerLog.SavePath);

foreach (string logFile in logFiles)
if (System.IO.Directory.Exists(ServerLog.SavePath))
{
System.IO.File.Delete(logFile);
DebugConsole.NewMessage("Deleted "+logFile, Color.Green);
}
var logFiles = System.IO.Directory.GetFiles(ServerLog.SavePath);

foreach (string logFile in logFiles)
{
System.IO.File.Delete(logFile);
DebugConsole.NewMessage("Deleted "+logFile, Color.Green);
}
}

if (System.IO.File.Exists("filelist.xml"))
{
Expand All @@ -472,6 +475,7 @@ public static void ExecuteCommand(string command, GameMain game)

if (System.IO.File.Exists("crashreport.txt"))
{
System.IO.File.Delete("crashreport.txt");
DebugConsole.NewMessage("Deleted crashreport.txt", Color.Green);
}

Expand Down
Binary file modified Subsurface/Submarines/Aegir Mark II.sub
Binary file not shown.
Binary file modified Subsurface/Submarines/Nehalennia.sub
Binary file not shown.
Binary file modified Subsurface/Submarines/Vellamo.sub
Binary file not shown.
5 changes: 3 additions & 2 deletions Subsurface/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
v0.3.2.3
---------------------------------------------------------------------------------------------------------

- clearing the server log after saving!
- saving the log after every round (even if it isn't full)
- fixed characters dropping items when a spectator joins
- fixed any selected textbox in the server lobby accepting keyboard input after a round starts
- praise the honkmother

---------------------------------------------------------------------------------------------------------
v0.3.2.2
Expand Down

0 comments on commit 8129aa2

Please sign in to comment.