From edd26e7b560b31c00635f54f64b63d05b45074ae Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sat, 3 Dec 2011 20:47:12 +0100 Subject: DREAMWEB: Move 'loadpersonal', 'loadnews', 'loadcart' out of dreamgen --- engines/dreamweb/dreamgen.cpp | 98 ------------------------------------------- 1 file changed, 98 deletions(-) (limited to 'engines/dreamweb/dreamgen.cpp') diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 7a66a05bc0..117f676998 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -5505,104 +5505,6 @@ void DreamGenContext::printOuterMon() { showFrame(); } -void DreamGenContext::loadPersonal() { - STACK_CHECK; - al = data.byte(kLocation); - dx = 1669; - _cmp(al, 0); - if (flags.z()) - goto foundpersonal; - _cmp(al, 42); - if (flags.z()) - goto foundpersonal; - dx = 1682; - _cmp(al, 2); - if (flags.z()) - goto foundpersonal; -foundpersonal: - openFile(); - readHeader(); - bx = es.word(di); - push(bx); - cl = 4; - _shr(bx, cl); - allocateMem(); - data.word(kTextfile1) = ax; - ds = ax; - cx = pop(); - dx = 0; - readFromFile(); - closeFile(); -} - -void DreamGenContext::loadNews() { - STACK_CHECK; - al = data.byte(kNewsitem); - dx = 1695; - _cmp(al, 0); - if (flags.z()) - goto foundnews; - dx = 1708; - _cmp(al, 1); - if (flags.z()) - goto foundnews; - dx = 1721; - _cmp(al, 2); - if (flags.z()) - goto foundnews; - dx = 1734; -foundnews: - openFile(); - readHeader(); - bx = es.word(di); - push(bx); - cl = 4; - _shr(bx, cl); - allocateMem(); - data.word(kTextfile2) = ax; - ds = ax; - cx = pop(); - dx = 0; - readFromFile(); - closeFile(); -} - -void DreamGenContext::loadCart() { - STACK_CHECK; - lookInInterface(); - dx = 1747; - _cmp(al, 0); - if (flags.z()) - goto gotcart; - dx = 1760; - _cmp(al, 1); - if (flags.z()) - goto gotcart; - dx = 1773; - _cmp(al, 2); - if (flags.z()) - goto gotcart; - dx = 1786; - _cmp(al, 3); - if (flags.z()) - goto gotcart; - dx = 1799; -gotcart: - openFile(); - readHeader(); - bx = es.word(di); - push(bx); - cl = 4; - _shr(bx, cl); - allocateMem(); - data.word(kTextfile3) = ax; - ds = ax; - cx = pop(); - dx = 0; - readFromFile(); - closeFile(); -} - void DreamGenContext::lookInInterface() { STACK_CHECK; al = 'I'; -- cgit v1.2.3