HDB: Add stubs in Sound and Input

This commit is contained in:
Nipun Garg 2019-07-12 02:20:21 +05:30 committed by Eugene Sandulenko
parent d5a779168f
commit a510482d64
3 changed files with 24 additions and 0 deletions

View File

@ -348,8 +348,10 @@ void Input::updateKeys(Common::Event event, bool keyDown) {
if (keyDown) {
buttons |= kButtonA;
g_hdb->_gfx->showPointer(true);
warning("STUB: changetoMenu");
} else {
buttons &= ~kButtonA;
warning("STUB: changetoMenu");
}
} else if (event.kbd.keycode == _keyDebug) {
if (keyDown) {

View File

@ -75,6 +75,16 @@ void Sound::stopMusic() {
debug(9, "STUB: Stop Music");
}
bool Sound::freeSound(int index) {
debug(9, "STUB: Free Sound");
return true;
}
SoundType Sound::whatSongIsPlaying() {
debug(9, "STUB: whatSongIsPlaying");
return SONG_NONE;
}
void Sound::markSoundCacheFreeable() {
warning("STUB: Sound::markSoundCacheFreeable() ");
}

View File

@ -1391,14 +1391,23 @@ public:
void save(Common::OutSaveFile *out);
void loadSaveFile(Common::InSaveFile *in);
void clearPersistent();
void setMusicVolume(int value) {
debug(9, "STUB: Add Music System Variables");
}
int getMusicVolume() {
debug(9, "STUB: Add Music System Variables");
return 1;
}
void setSFXVolume(int value) {
debug(9, "STUB: Add Music System Variables");
}
int getSFXVolume() {
debug(9, "STUB: Add Music System Variables");
return 1;
}
void setVoiceStatus(int value) {
debug(9, "STUB: Add Music System Variables");
}
int getVoiceStatus() {
debug(9, "STUB: Add Music System Variables");
return 1;
@ -1411,6 +1420,9 @@ public:
bool songPlaying(SoundType song);
bool stopChannel(int channel);
void stopMusic();
bool freeSound(int index);
SoundType whatSongIsPlaying();
void markSoundCacheFreeable();
};