diff options
author | Colin Snover | 2017-05-21 19:27:52 -0500 |
---|---|---|
committer | Colin Snover | 2017-05-21 19:37:42 -0500 |
commit | 63a87ac1f7f890edfd3b2b183260b4859dabc6b2 (patch) | |
tree | b12d02d52ff5f94ee828f867c7f305d0c5421a61 /engines | |
parent | 2d3c86187f5efbb096c566cb223ce4e9726aa5b2 (diff) | |
download | scummvm-rg350-63a87ac1f7f890edfd3b2b183260b4859dabc6b2.tar.gz scummvm-rg350-63a87ac1f7f890edfd3b2b183260b4859dabc6b2.tar.bz2 scummvm-rg350-63a87ac1f7f890edfd3b2b183260b4859dabc6b2.zip |
SCI32: Fix return value of kWebConnect
On macOS, the return code from OSystem::openUrl was the opposite
of what it was supposed to be; it is now fixed, so this caller
needs to be fixed too.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 31b9f779ea..7650d2f215 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -656,7 +656,7 @@ reg_t kPlatform32(EngineState *s, int argc, reg_t *argv) { reg_t kWebConnect(EngineState *s, int argc, reg_t *argv) { const Common::String baseUrl = "https://web.archive.org/web/1996/"; const Common::String gameUrl = argc > 0 ? s->_segMan->getString(argv[0]) : "http://www.sierra.com"; - return make_reg(0, !g_system->openUrl(baseUrl + gameUrl)); + return make_reg(0, g_system->openUrl(baseUrl + gameUrl)); } reg_t kWinExec(EngineState *s, int argc, reg_t *argv) { |