- Added a possibility to put a file "Res.txt" instead of the folder "Res". The file Res.txt is a simple 1 line text file, telling where to find the Res folder, terminated by "/". For example: "../../wagic_res".
This addresses issue 428 . This could also help us in the future, to develop mods.
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-11-07 09:26:29 +00:00
parent b14e3808db
commit 5d907f5abe
31 changed files with 115 additions and 94 deletions
+4 -6
View File
@@ -9,6 +9,7 @@
//-------------------------------------------------------------------------------------
#include "../include/JSoundSystem.h"
#include "../include/JFileSystem.h"
#include "../include/JAudio.h"
#include "../include/JMP3.h"
#include <string>
@@ -108,12 +109,9 @@ void JSoundSystem::DestroySoundSystem()
JMusic *JSoundSystem::LoadMusic(const char *fileName)
{
#ifdef RESPATH
string s = RESPATH"/";
#else
string s = "Res/";
#endif
s.append(fileName);
string s = JGE_GET_RES(fileName);
JMusic *music = new JMusic();
if (music)
{