mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
CGE2: Implement switchVox() and switchCap().
This commit is contained in:
parent
d0a6fa4ce2
commit
45da1e7c74
@ -97,6 +97,8 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
|
||||
_req = 1;
|
||||
_midiNotify = nullptr;
|
||||
_spriteNotify = nullptr;
|
||||
_enaCap = true;
|
||||
_enaVox = true;
|
||||
}
|
||||
|
||||
void CGE2Engine::init() {
|
||||
|
@ -285,6 +285,8 @@ public:
|
||||
NotifyFunctionType _midiNotify;
|
||||
NotifyFunctionType _spriteNotify;
|
||||
int _startGameSlot;
|
||||
bool _enaCap;
|
||||
bool _enaVox;
|
||||
|
||||
ResourceManager *_resman;
|
||||
Vga *_vga;
|
||||
|
@ -1137,11 +1137,23 @@ void CGE2Engine::setVolume(int idx, int cnt) {
|
||||
}
|
||||
|
||||
void CGE2Engine::switchCap() {
|
||||
warning("STUB: CGE2Engine::switchCap()");
|
||||
if (_enaCap) {
|
||||
_sayCap = !_sayCap;
|
||||
if (!_sayCap)
|
||||
_sayVox = true;
|
||||
keyClick();
|
||||
checkSaySwitch();
|
||||
}
|
||||
}
|
||||
|
||||
void CGE2Engine::switchVox() {
|
||||
warning("STUB: CGE2Engine::switchVox()");
|
||||
if (_enaVox) {
|
||||
_sayVox = !_sayVox;
|
||||
if (!_sayVox)
|
||||
_sayCap = true;
|
||||
keyClick();
|
||||
checkSaySwitch();
|
||||
}
|
||||
}
|
||||
|
||||
void CGE2Engine::offUse() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user