diff options
author | Colin Snover | 2016-06-18 21:06:16 -0500 |
---|---|---|
committer | Colin Snover | 2016-06-21 08:14:12 -0500 |
commit | 52505dc57f7cf244e7bc318746add0ce002b6e60 (patch) | |
tree | 08b5f144e21e174cdaeb073903dde88e509855ef /engines/sci/engine/kgraphics32.cpp | |
parent | ceee33ba2c8e880be27a23915228fa11af41515c (diff) | |
download | scummvm-rg350-52505dc57f7cf244e7bc318746add0ce002b6e60.tar.gz scummvm-rg350-52505dc57f7cf244e7bc318746add0ce002b6e60.tar.bz2 scummvm-rg350-52505dc57f7cf244e7bc318746add0ce002b6e60.zip |
SCI32: Implement basic kMessageBox
This kernel call seems only to be used by KQ7 1.51 (which was
Windows-only) to send warnings to the user.
It was easy enough to do a basic implementation in the ScummVM
GUI rather than just make it an empty call, so now it is a thing.
Diffstat (limited to 'engines/sci/engine/kgraphics32.cpp')
-rw-r--r-- | engines/sci/engine/kgraphics32.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp index f8ec96c843..4083414724 100644 --- a/engines/sci/engine/kgraphics32.cpp +++ b/engines/sci/engine/kgraphics32.cpp @@ -254,6 +254,10 @@ reg_t kWinHelp(EngineState *s, int argc, reg_t *argv) { return s->r_acc; } +reg_t kMessageBox(EngineState *s, int argc, reg_t *argv) { + return g_sci->_gfxControls32->kernelMessageBox(s->_segMan->getString(argv[0]), s->_segMan->getString(argv[1]), argv[2].toUint16()); +} + /** * Causes an immediate plane transition with an optional transition * effect |