Fix client crashing on mono when taking a screenshot, but the client was started from a different directory.

This commit is contained in:
UnknownShadow200 2016-05-12 21:31:44 +10:00
parent d73dd33ba3
commit e7410673e9

View File

@ -390,7 +390,7 @@ namespace ClassicalSharp {
string timestamp = DateTime.Now.ToString( "dd-MM-yyyy-HH-mm-ss" );
string file = "screenshot_" + timestamp + ".png";
path = Path.Combine( "screenshots", file );
path = Path.Combine( path, file );
Graphics.TakeScreenshot( path, ClientSize.Width, ClientSize.Height );
Chat.Add( "&eTaken screenshot as: " + file );
screenshotRequested = false;