X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=1212558afa37c9454ef105934f354653b8592872;hb=79b5064ce9bf996395b8605691b09bcdbf503d2a;hp=691fa5622542a1c583692461d5e56f4a5c5e06fa;hpb=9a5f2758e538d9216d255b4797f042a1b6874272;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 691fa56..1212558 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -236,7 +236,12 @@ void Screenshot (void) struct tm *tme = localtime(&t); sprintf(temp, "Screenshots\\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"); + #else mkdir("Screenshots", S_IRWXU); + #endif + ScreenShot(temp/*"Screenshots\\Screenshot.png"*/); /*FSSpec MAC_file; @@ -3250,7 +3255,7 @@ void Game::Tick() char tempstring[256]; #if defined(__APPLE__) sprintf (tempstring, "%s", registrationname); - #elif defined(_MSC_VER) || defined(__linux__) + #elif defined(_WIN32) || defined(__linux__) sprintf (tempstring, "%s-windows", registrationname); #else #error Please make sure you have the right registration key stuff here!