aboutsummaryrefslogtreecommitdiff
path: root/saga/sthread.cpp
diff options
context:
space:
mode:
authorAndrew Kurushin2004-12-24 20:44:39 +0000
committerAndrew Kurushin2004-12-24 20:44:39 +0000
commit2289ea371b46a0696ae54923f32c1027b73afe34 (patch)
treee29bff22df0926a7a482fb82bcbb64d9daa33149 /saga/sthread.cpp
parentf0bc27f11c5fb638623108df3700b182433df947 (diff)
downloadscummvm-rg350-2289ea371b46a0696ae54923f32c1027b73afe34.tar.gz
scummvm-rg350-2289ea371b46a0696ae54923f32c1027b73afe34.tar.bz2
scummvm-rg350-2289ea371b46a0696ae54923f32c1027b73afe34.zip
- remove old stuff
- work on "walking" in progress svn-id: r16298
Diffstat (limited to 'saga/sthread.cpp')
-rw-r--r--saga/sthread.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp
index dfaffed4ab..aa868cbd9a 100644
--- a/saga/sthread.cpp
+++ b/saga/sthread.cpp
@@ -206,28 +206,7 @@ size_t Script::SThreadGetReadLen(SCRIPT_THREAD *thread) {
}
-int Script::SThreadHoldSem(SEMAPHORE *sem) {
- if (sem == NULL) {
- return FAILURE;
- }
-
- sem->hold_count++;
-
- return SUCCESS;
-}
-
-int Script::SThreadReleaseSem(SEMAPHORE *sem) {
- if (sem == NULL) {
- return FAILURE;
- }
- sem->hold_count--;
- if (sem->hold_count < 0) {
- sem->hold_count = 0;
- }
-
- return SUCCESS;
-}
int Script::SThreadDebugStep() {
if (_dbg_singlestep) {
@@ -278,13 +257,10 @@ int Script::SThreadRun(SCRIPT_THREAD *thread, int instr_limit) {
if (thread->flags & kTFlagWaiting)
break;
- if (thread->sem.hold_count) //TODO: remove it
- break;
-
saved_offset = thread->i_offset;
operandChar = scriptS.readByte();
- debug(2, "Executing thread offset: %lu (%x) stack: %d", thread->i_offset, operandChar, thread->stackSize());
+// debug(2, "Executing thread offset: %lu (%x) stack: %d", thread->i_offset, operandChar, thread->stackSize());
switch (operandChar) {
case 0x01: // nextblock
// Some sort of "jump to the start of the next memory