Ticket #4846: tinsel-sched.patch
File tinsel-sched.patch, 1.8 KB (added by , 15 years ago) |
---|
-
engines/tinsel/sched.cpp
508 508 /** 509 509 * The code for for restored scene processes. 510 510 */ 511 static void RestoredProcessProcess(CORO_PARAM, const void * ) {511 static void RestoredProcessProcess(CORO_PARAM, const void *param) { 512 512 CORO_BEGIN_CONTEXT; 513 513 INT_CONTEXT *pic; 514 514 CORO_END_CONTEXT(_ctx); 515 515 516 516 CORO_BEGIN_CODE(_ctx); 517 517 518 PROCESS *pProc; // this process pointer519 520 518 // get the stuff copied to process when it was created 521 pProc = g_scheduler->getCurrentProcess(); 522 _ctx->pic = *((INT_CONTEXT **) pProc->param); 519 _ctx->pic = *((INT_CONTEXT **)param); 523 520 524 521 _ctx->pic = RestoreInterpretContext(_ctx->pic); 525 AttachInterpret(_ctx->pic, pProc);522 AttachInterpret(_ctx->pic, g_scheduler->getCurrentProcess()); 526 523 527 524 CORO_INVOKE_1(Interpret, _ctx->pic); 528 525 … … 532 529 /** 533 530 * Process Tinsel Process 534 531 */ 535 static void ProcessTinselProcess(CORO_PARAM, const void *) { 536 PPROCESS pProc = g_scheduler->getCurrentProcess(); 537 PINT_CONTEXT *pPic = (PINT_CONTEXT *) pProc->param; 532 static void ProcessTinselProcess(CORO_PARAM, const void *param) { 533 PINT_CONTEXT *pPic = (PINT_CONTEXT *)param; 538 534 539 535 CORO_BEGIN_CONTEXT; 540 536 CORO_END_CONTEXT(_ctx); -
engines/tinsel/play.cpp
376 376 CORO_END_CODE; 377 377 } 378 378 379 static void ResSoundReel(CORO_PARAM, const void * ) {379 static void ResSoundReel(CORO_PARAM, const void *param) { 380 380 // get the stuff copied to process when it was created 381 PPROCESS pProc = g_scheduler->getCurrentProcess(); 382 int i = *(int *)pProc->param; 381 int i = *(int *)param; 383 382 384 383 CORO_BEGIN_CONTEXT; 385 384 CORO_END_CONTEXT(_ctx);