Commit 06726c7d authored by nanahira's avatar nanahira

fix

parent 158fa903
......@@ -254,8 +254,10 @@ void SoundManager::PlaySoundEffect(int sound) {
default:
break;
}
wchar_t soundNameW[32];
BufferIO::DecodeUTF8(soundName, soundNameW);
wchar_t soundPathW[40];
myswprintf(soundPathW, L"./sound/%s.wav", soundName);
myswprintf(soundPathW, L"./sound/%ls.wav", soundNameW);
PlaySound(soundPathW);
#endif // YGOPRO_USE_AUDIO
}
......
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