diff options
author | Colin Snover | 2017-01-02 23:30:35 -0600 |
---|---|---|
committer | Colin Snover | 2017-03-30 19:46:27 -0500 |
commit | 766d46153a285794d573d84d237aac3821431a01 (patch) | |
tree | 5d85232e856175fc20c4990ad48bf06a9db3d490 /engines/sci/engine/kernel_tables.h | |
parent | 65fe7bcfd8431888d9fdf345759bad1a78c455b7 (diff) | |
download | scummvm-rg350-766d46153a285794d573d84d237aac3821431a01.tar.gz scummvm-rg350-766d46153a285794d573d84d237aac3821431a01.tar.bz2 scummvm-rg350-766d46153a285794d573d84d237aac3821431a01.zip |
SCI32: Implement known-used portions of kPlayDuck
Diffstat (limited to 'engines/sci/engine/kernel_tables.h')
-rw-r--r-- | engines/sci/engine/kernel_tables.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel_tables.h b/engines/sci/engine/kernel_tables.h index 211d96bc2f..95f3197896 100644 --- a/engines/sci/engine/kernel_tables.h +++ b/engines/sci/engine/kernel_tables.h @@ -495,6 +495,15 @@ static const SciKernelMapSubEntry kRobot_subops[] = { }; // version, subId, function-mapping, signature, workarounds +static const SciKernelMapSubEntry kPlayDuck_subops[] = { + { SIG_SCI3, 1, MAP_CALL(PlayDuckPlay), "iiiii", NULL }, + { SIG_SCI3, 2, MAP_CALL(PlayDuckSetFrameOut), "i", NULL }, + { SIG_SCI3, 5, MAP_CALL(PlayDuckClose), "", NULL }, + { SIG_SCI3, 6, MAP_CALL(PlayDuckSetVolume), "i", NULL }, + SCI_SUBOPENTRY_TERMINATOR +}; + +// version, subId, function-mapping, signature, workarounds static const SciKernelMapSubEntry kRemapColors_subops[] = { { SIG_SCI32, 0, MAP_CALL(RemapColorsOff), "(i)", NULL }, { SIG_SCI32, 1, MAP_CALL(RemapColorsByRange), "iiii(i)", NULL }, @@ -1008,7 +1017,7 @@ static SciKernelMapEntry s_kernelMap[] = { { MAP_CALL(MorphOn), SIG_EVERYWHERE, "", NULL, NULL }, // SCI3 Kernel Functions - { MAP_CALL(PlayDuck), SIG_EVERYWHERE, "(.*)", NULL, NULL }, + { MAP_CALL(PlayDuck), SIG_SCI3, SIGFOR_ALL, "(.*)", kPlayDuck_subops,NULL }, #endif { NULL, NULL, SIG_EVERYWHERE, NULL, NULL, NULL } |