Use DIR_DELIM instead of / in file paths
authorPilzAdam <pilzadam@minetest.net>
Thu, 2 May 2013 21:08:59 +0000 (23:08 +0200)
committerPilzAdam <pilzadam@minetest.net>
Thu, 2 May 2013 21:08:59 +0000 (23:08 +0200)
src/subgame.cpp

index a17b1623466c301d509a0aadb2be6f6268f7e940..1bee630b257de20b80904d93eef5019d4dad7723 100644 (file)
@@ -101,9 +101,9 @@ SubgameSpec findSubgame(const std::string &id)
        std::string menuoverlay_path;
        std::string menuicon_path;
 #ifndef SERVER
-       menubackground_path = getImagePath(game_path + DIR_DELIM + "menu/background.png");
-       menuoverlay_path = getImagePath(game_path + DIR_DELIM + "menu/overlay.png");
-       menuicon_path = getImagePath(game_path + DIR_DELIM + "menu/icon.png");
+       menubackground_path = getImagePath(game_path + DIR_DELIM + "menu" + DIR_DELIM + "background.png");
+       menuoverlay_path = getImagePath(game_path + DIR_DELIM + "menu" + DIR_DELIM + "overlay.png");
+       menuicon_path = getImagePath(game_path + DIR_DELIM + "menu" + DIR_DELIM + "icon.png");
 #endif
        return SubgameSpec(id, game_path, gamemod_path, mods_paths, game_name,
                        menubackground_path, menuoverlay_path, menuicon_path);