From 67a6bc4ab5be607c4a9f9a349dee629e864c2d42 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 16 Oct 2011 16:16:47 +0300 Subject: Fix map delete on windows (concatenate paths correctly with / or \ depending on OS) --- src/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 414a37759..c415db1e3 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -42,6 +42,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mainmenumanager.h" #include "gettext.h" #include "log.h" +#include "filesys.h" /* TODO: Move content-aware stuff to separate file by adding properties @@ -1281,7 +1282,7 @@ void the_game( irr::video::IImage* const image = driver->createScreenShot(); if (image) { irr::c8 filename[256]; - snprintf(filename, 256, "%s/screenshot_%u.png", + snprintf(filename, 256, "%s" DIR_DELIM "screenshot_%u.png", g_settings->get("screenshot_path").c_str(), device->getTimer()->getRealTime()); if (driver->writeImageToFile(image, filename)) { -- cgit v1.2.3