mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 17:45:39 +00:00
Added a workaround of sorts for Inca2. It's essentially playable, sans saving, space shooter and correct speech language selection
svn-id: r31032
This commit is contained in:
parent
d5e09de48c
commit
a513f0f43a
@ -1317,7 +1317,7 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||
kPlatformPC,
|
||||
Common::ADGF_NO_FLAGS
|
||||
},
|
||||
kGameTypeGob3,
|
||||
kGameTypeInca2,
|
||||
kFeaturesCD,
|
||||
"intro"
|
||||
},
|
||||
|
@ -291,6 +291,7 @@ bool GobEngine::initGameParts() {
|
||||
break;
|
||||
|
||||
case kGameTypeGob3:
|
||||
case kGameTypeInca2:
|
||||
_init = new Init_v3(this);
|
||||
_video = new Video_v2(this);
|
||||
_inter = new Inter_v3(this);
|
||||
|
@ -86,7 +86,8 @@ enum GameType {
|
||||
kGameTypeWoodruff,
|
||||
kGameTypeBargon,
|
||||
kGameTypeWeen,
|
||||
kGameTypeLostInTime
|
||||
kGameTypeLostInTime,
|
||||
kGameTypeInca2
|
||||
};
|
||||
|
||||
enum Features {
|
||||
|
@ -1782,6 +1782,18 @@ bool Inter_v2::o2_freeCollision(OpFuncParams ¶ms) {
|
||||
}
|
||||
|
||||
bool Inter_v2::o2_goblinFunc(OpFuncParams ¶ms) {
|
||||
// TODO: In Inca 2, this is the big SpaceShoot0rz()-Opcode.
|
||||
// It's not yet implemented, so we fudge our way through
|
||||
// and pretend we've won.
|
||||
if (_vm->getGameType() == kGameTypeInca2) {
|
||||
_vm->_global->_inter_execPtr += 4;
|
||||
uint16 resVar = (uint16) load16();
|
||||
_vm->_global->_inter_execPtr += 4;
|
||||
|
||||
WRITE_VAR(resVar, 1);
|
||||
return false;
|
||||
}
|
||||
|
||||
OpGobParams gobParams;
|
||||
int16 cmd;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user