summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-16 16:16:47 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-16 16:16:47 +0300
commit67a6bc4ab5be607c4a9f9a349dee629e864c2d42 (patch)
treea07c396e114a21ccfede1bd9cd28470e1bd178b3 /src/game.cpp
parentef397dca7c4adb4216e5063a01a487889bf28abd (diff)
downloadminetest-67a6bc4ab5be607c4a9f9a349dee629e864c2d42.tar.gz
minetest-67a6bc4ab5be607c4a9f9a349dee629e864c2d42.tar.bz2
minetest-67a6bc4ab5be607c4a9f9a349dee629e864c2d42.zip
Fix map delete on windows (concatenate paths correctly with / or \ depending on OS)
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
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)) {