aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel_tables.h
diff options
context:
space:
mode:
authorColin Snover2017-01-10 12:33:21 -0600
committerColin Snover2017-01-16 12:16:12 -0600
commit0744dc4109acd6ca433d3da492b9a1f02bd38a81 (patch)
treebe6672e5a2ebbf5ec920d463ceca7369ebe9cc09 /engines/sci/engine/kernel_tables.h
parent60867811ccc6d0b7d0e5dbb4ad92883a9a59657c (diff)
downloadscummvm-rg350-0744dc4109acd6ca433d3da492b9a1f02bd38a81.tar.gz
scummvm-rg350-0744dc4109acd6ca433d3da492b9a1f02bd38a81.tar.bz2
scummvm-rg350-0744dc4109acd6ca433d3da492b9a1f02bd38a81.zip
SCI32: Fix spinloop in Hoyle5
Hoyle5 will spin on kGetTime between 15 and 300 ticks in multiple game scripts in order to delay execution (for example, after choosing opponents and clicking "okay"). This causes ScummVM to be unresponsive and wastes CPU time. This commit patches the spin subroutines to instead call a kernel function (kWait) that waits without a spin loop. This kernel function was removed in SCI2, and has been added back in ScummVM specifically for Hoyle5, so this patch will not work with the original interpreter.
Diffstat (limited to 'engines/sci/engine/kernel_tables.h')
-rw-r--r--engines/sci/engine/kernel_tables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel_tables.h b/engines/sci/engine/kernel_tables.h
index ac4987e603..741f46e02c 100644
--- a/engines/sci/engine/kernel_tables.h
+++ b/engines/sci/engine/kernel_tables.h
@@ -1408,7 +1408,7 @@ static const char *const sci21_default_knames[] = {
/*0x4c*/ "ScrollWindow", // Dummy in SCI3
/*0x4d*/ "Dummy",
/*0x4e*/ "Dummy",
- /*0x4f*/ "Dummy",
+ /*0x4f*/ "Dummy", // Replaced with kWait for Hoyle5 in ScummVM
/*0x50*/ "GetEvent",
/*0x51*/ "GlobalToLocal",
/*0x52*/ "LocalToGlobal",