WINTERMUTE: Implement Game.OpenDocument() method

Game.OpenDocument() is used to open links for developer's site or social
account in games like hellavuday, 5ld, etc.
This commit is contained in:
lolbot-iichan 2019-06-26 03:57:12 +03:00 committed by Filippos Karapetis
parent c1610a9fd1
commit 9bee1b5e31

View file

@ -1657,7 +1657,8 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack
// OpenDocument
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "OpenDocument") == 0) {
stack->correctParams(0);
stack->correctParams(1);
g_system->openUrl(stack->pop()->getString());
stack->pushNULL();
return STATUS_OK;
}