Commit d77c7126 authored by nanahira's avatar nanahira

mgirrchk

parent 1a3ad7f3
......@@ -662,7 +662,7 @@ bool Game::Initialize() {
col.setAlpha(224);
env->getSkin()->setColor((EGUI_DEFAULT_COLOR)i, col);
}
#ifndef __APPLE__
#ifdef YGOPRO_USE_IRRKLANG
engineSound = irrklang::createIrrKlangDevice();
engineMusic = irrklang::createIrrKlangDevice();
#ifdef IRRKLANG_STATIC
......@@ -1257,7 +1257,7 @@ void Game::SaveConfig() {
fclose(fp);
}
void Game::PlaySoundEffect(int sound) {
#ifndef __APPLE__
#ifdef YGOPRO_USE_IRRKLANG
if(!mainGame->chkEnableSound->isChecked())
return;
switch(sound) {
......@@ -1388,7 +1388,7 @@ void Game::PlaySoundEffect(int sound) {
#endif
}
void Game::PlayMusic(char* song, bool loop) {
#ifndef __APPLE__
#ifdef YGOPRO_USE_IRRKLANG
if(!mainGame->chkEnableMusic->isChecked())
return;
if(!engineMusic->isCurrentlyPlaying(song)) {
......@@ -1399,7 +1399,7 @@ void Game::PlayMusic(char* song, bool loop) {
#endif
}
void Game::PlayBGM(int scene) {
#ifndef __APPLE__
#ifdef YGOPRO_USE_IRRKLANG
if(!mainGame->chkEnableMusic->isChecked())
return;
if(!mainGame->chkMusicMode->isChecked())
......
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