mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -04:00
Fix client crashing on mono when taking a screenshot, but the client was started from a different directory.
This commit is contained in:
parent
d73dd33ba3
commit
e7410673e9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user