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:
parent
c1610a9fd1
commit
9bee1b5e31
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue