Commit 01e9295f authored by mercury233's avatar mercury233

update

parent 5a9a840e
......@@ -31,3 +31,13 @@ project "ygopro"
includedirs { "/usr/include/lua", "/usr/include/lua5.2", "/usr/include/lua/5.2", "/usr/include/irrlicht", "/usr/include/freetype2" }
excludes { "COSOperator.*" }
links { "event_pthreads", "GL", "dl", "pthread" }
configuration "linux"
removelinks { "lua" }
links { "lua5.2" }
if USE_IRRKLANG then
defines { "YGOPRO_USE_IRRKLANG" }
links { "IrrKlang" }
linkoptions{ "-Wl,-rpath=./irrklang/bin/linux-gcc-64/" }
libdirs { "../irrklang/bin/linux-gcc-64" }
includedirs { "../irrklang/include" }
end
......@@ -54,7 +54,7 @@ void SoundManager::RefershBGMDir(std::wstring path, int scene) {
// not fully implemented
DIR * dir;
struct dirent * dirp;
if((dir = opendir("./sound/BGM/*.ogg")) == NULL)
if((dir = opendir("./sound/BGM/")) == NULL)
return;
while((dirp = readdir(dir)) != NULL) {
size_t len = strlen(dirp->d_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment