]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Improved error reporting of screenshot saving, fixed screenshot path.
[lugaru.git] / Source / GameTick.cpp
index 921058bae09c0a07bea69e30345d4bb296d6b53b..1ed3b8aae13015130bc6811a8408a4b8f18756ae 100644 (file)
@@ -348,13 +348,9 @@ void Screenshot (void)
     char filename[1024];
     time_t t = time(NULL);
     struct tm *tme = localtime(&t);
-    sprintf(filename, "Screenshots/Screenshot-%04d%02d%02d-%02d%02d%02d.png",
+    sprintf(filename, "Screenshot-%04d%02d%02d-%02d%02d%02d.png",
             tme->tm_year + 1900, tme->tm_mon + 1, tme->tm_mday, tme->tm_hour, tme->tm_min, tme->tm_sec);
 
-#if defined(_WIN32)
-    mkdir("Screenshots");
-#endif
-
     save_screenshot(filename);
 }