PINK: Dispatch webpage menu items to a stub function

This commit is contained in:
Henrik "Henke37" Andersson 2020-02-12 23:13:23 +01:00 committed by Eugene Sandulenko
parent 6218028f02
commit 3133cf1c73
2 changed files with 22 additions and 0 deletions

View File

@ -338,10 +338,30 @@ void PinkEngine::executeMenuCommand(uint id) {
_actor->loadPDA("SIBOVER");
break;
case kShowGameWebPage:
openLocalWebPage("PINK.HTM");
break;
case kShowTechSupport:
openLocalWebPage("SUPPORT.HTM");
break;
case kShowWinnnerPage:
openLocalWebPage("WINNER.HTM");
break;
case kShowWanderLustWebPage:
openLocalWebPage("LUST.HTM");
break;
case kShowOnlineHints:
openLocalWebPage("HINTS.HTM");
break;
default:
warning("Unprocessed command id %d", id);
break;
}
}
void PinkEngine::openLocalWebPage(const Common::String &pageName) {
warning("Trying to open local webpage \"%s\", but webpage opening isn't implemented yet",pageName.c_str());
}
} // End of namespace Pink

View File

@ -143,6 +143,8 @@ private:
void addModule(const Common::String &moduleName);
void removeModule();
void openLocalWebPage(const Common::String &pageName);
private:
Console *_console;
Common::RandomSource _rnd;