Commit 3d93cf14 authored by mercury233's avatar mercury233

fix

parent 792e7e98
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
#include "../ikpmp3/ikpMP3.h" #include "../ikpmp3/ikpMP3.h"
#endif #endif
#define wcsicmp _wcsicmp
namespace ygo { namespace ygo {
SoundManager soundManager; SoundManager soundManager;
...@@ -50,7 +48,7 @@ void SoundManager::RefershBGMDir(std::wstring path, int scene) { ...@@ -50,7 +48,7 @@ void SoundManager::RefershBGMDir(std::wstring path, int scene) {
do { do {
size_t len = wcslen(fdataw.cFileName); size_t len = wcslen(fdataw.cFileName);
if((fdataw.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) || len < 5 if((fdataw.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) || len < 5
|| !(wcsicmp(fdataw.cFileName + len - 4, L".mp3") == 0 || wcsicmp(fdataw.cFileName + len - 4, L".ogg") == 0)) || !(_wcsicmp(fdataw.cFileName + len - 4, L".mp3") == 0 || _wcsicmp(fdataw.cFileName + len - 4, L".ogg") == 0))
continue; continue;
std::wstring filename = path + (std::wstring)fdataw.cFileName; std::wstring filename = path + (std::wstring)fdataw.cFileName;
BGMList[BGM_ALL].push_back(filename); BGMList[BGM_ALL].push_back(filename);
......
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