From e7410673e93b27c7f70d5e002343367ff7102ba4 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 12 May 2016 21:31:44 +1000 Subject: [PATCH] Fix client crashing on mono when taking a screenshot, but the client was started from a different directory. --- ClassicalSharp/Game/Game.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClassicalSharp/Game/Game.cs b/ClassicalSharp/Game/Game.cs index b5d14c442..bc6fe5ea7 100644 --- a/ClassicalSharp/Game/Game.cs +++ b/ClassicalSharp/Game/Game.cs @@ -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;