MOHAWK: Implement another Riven demo external

xademoquit() is called from card 12 when clicking anywhere but the system requirements (which is why I hadn't noticed it earlier). I've also stubbed another demo function (xaexittomain()), called from an unused card's script for completeness.

svn-id: r54359
This commit is contained in:
Matthew Hoops 2010-11-19 03:52:06 +00:00
parent a0df86955f
commit 769b460f0d
2 changed files with 24 additions and 0 deletions

View File

@ -70,6 +70,8 @@ void RivenExternal::setupCommands() {
COMMAND(xalaunchbrowser);
COMMAND(xadisablemenuintro);
COMMAND(xaenablemenuintro);
COMMAND(xademoquit);
COMMAND(xaexittomain);
// bspit (Bookmaking Island) external commands
COMMAND(xblabopenbook);
@ -652,6 +654,26 @@ void RivenExternal::xaenablemenuintro(uint16 argc, uint16 *argv) {
_vm->_gfx->showInventory();
}
void RivenExternal::xademoquit(uint16 argc, uint16 *argv) {
// Exactly as it says on the tin. In the demo, this function quits.
_vm->setGameOver();
}
void RivenExternal::xaexittomain(uint16 argc, uint16 *argv) {
// One could potentially implement this function, but there would be no
// point. This function is only used in the demo's aspit card 9 update
// screen script. However, card 9 is not accessible from the game without
// jumping to the card and there's nothing going on in the card so it
// never gets called. There's also no card 9 in the full game, so the
// functionality of this card was likely removed before release. The
// demo executable references some other external commands relating to
// setting and getting the volume, as well as drawing the volume. I'd
// venture to guess that this would have been some sort of options card
// replaced with the Windows/Mac API in the final product.
//
// Yeah, this function is just dummied and holds a big comment ;)
}
// ------------------------------------------------------------------------------------
// bspit (Bookmaking Island) external commands
// ------------------------------------------------------------------------------------

View File

@ -100,6 +100,8 @@ private:
void xalaunchbrowser(uint16 argc, uint16 *argv);
void xadisablemenuintro(uint16 argc, uint16 *argv);
void xaenablemenuintro(uint16 argc, uint16 *argv);
void xademoquit(uint16 argc, uint16 *argv);
void xaexittomain(uint16 argc, uint16 *argv);
// -----------------------------------------------------
// bspit (Boiler Island) external commands