[Scummvm-git-logs] scummvm master -> 9bee1b5e3148cd9ddfa79804ea255e5ed180dd3c

bluegr bluegr at gmail.com
Wed Jun 26 06:15:17 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9bee1b5e31 WINTERMUTE: Implement Game.OpenDocument() method


Commit: 9bee1b5e3148cd9ddfa79804ea255e5ed180dd3c
    https://github.com/scummvm/scummvm/commit/9bee1b5e3148cd9ddfa79804ea255e5ed180dd3c
Author: lolbot-iichan (lolbot_iichan at mail.ru)
Date: 2019-06-26T07:15:14+03:00

Commit Message:
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.

Changed paths:
    engines/wintermute/base/base_game.cpp


diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index 0ef58d5..576f8e6 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -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;
 	}





More information about the Scummvm-git-logs mailing list