mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
DREAMWEB: Added crash workaround
This commit is contained in:
parent
5efe835f20
commit
613a203c8a
@ -2583,8 +2583,10 @@ findlenextext: mov cl,[es:si]
|
||||
sub bx,extext
|
||||
push bx ax
|
||||
sub cx,bx
|
||||
cmp cx, 0xffff; BIG FIXME! Find out why this is happening
|
||||
jz $1
|
||||
rep movsb
|
||||
pop bx
|
||||
$1: pop bx
|
||||
sub extextpos,bx
|
||||
|
||||
pop si
|
||||
|
@ -8302,7 +8302,11 @@ findlenextext:
|
||||
push(bx);
|
||||
push(ax);
|
||||
_sub(cx, bx);
|
||||
_cmp(cx, 0xffff);
|
||||
if (flags.z())
|
||||
goto _tmp1;
|
||||
_movsb(cx, true);
|
||||
_tmp1:
|
||||
bx = pop();
|
||||
_sub(data.word(kExtextpos), bx);
|
||||
si = pop();
|
||||
@ -9536,6 +9540,9 @@ void DreamGenContext::selectlocation() {
|
||||
playchannel0();
|
||||
data.byte(kNewlocation) = 255;
|
||||
select:
|
||||
_cmp(data.byte(kQuitrequested), 0);
|
||||
if (!flags.z())
|
||||
goto quittravel;
|
||||
delpointer();
|
||||
readmouse();
|
||||
showpointer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user