v0.3.2.3: Fixed "cleanbuild" crashing if server log folder doesn't exist
This commit is contained in:
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
||||
// 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")]
|
||||
|
||||
@@ -449,13 +449,16 @@ namespace Barotrauma
|
||||
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"))
|
||||
{
|
||||
@@ -472,6 +475,7 @@ namespace Barotrauma
|
||||
|
||||
if (System.IO.File.Exists("crashreport.txt"))
|
||||
{
|
||||
System.IO.File.Delete("crashreport.txt");
|
||||
DebugConsole.NewMessage("Deleted crashreport.txt", Color.Green);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user