Skip to content

Commit

Permalink
DREAMWEB: Removed the check that there is enough memory
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Nov 16, 2011
1 parent ec14d38 commit 63a9416
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -211,6 +211,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'transfertext',
'splitintolines',
'initrain',
'checkbasemem',
], skip_output = [
# These functions are processed but not output
'dreamweb',
Expand Down
11 changes: 0 additions & 11 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -13293,16 +13293,6 @@ void DreamGenContext::checkforemm() {
STACK_CHECK;
}

void DreamGenContext::checkbasemem() {
STACK_CHECK;
bx = data.word(kHowmuchalloc);
_cmp(bx, 0x9360);
if (!flags.c())
return /* (enoughmem) */;
data.byte(kGameerror) = 5;
{ quickquit(); return; };
}

void DreamGenContext::allocatebuffers() {
STACK_CHECK;
bx = (0+2080+30000+(16*114)+((114+2)*2)+18000)/16;
Expand Down Expand Up @@ -16632,7 +16622,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_setupemm: setupemm(); break;
case addr_removeemm: removeemm(); break;
case addr_checkforemm: checkforemm(); break;
case addr_checkbasemem: checkbasemem(); break;
case addr_allocatebuffers: allocatebuffers(); break;
case addr_clearbuffers: clearbuffers(); break;
case addr_clearchanges: clearchanges(); break;
Expand Down
3 changes: 1 addition & 2 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -128,7 +128,6 @@ class DreamGenContext : public Context {
static const uint16 addr_clearchanges = 0xc974;
static const uint16 addr_clearbuffers = 0xc970;
static const uint16 addr_allocatebuffers = 0xc96c;
static const uint16 addr_checkbasemem = 0xc968;
static const uint16 addr_checkforemm = 0xc964;
static const uint16 addr_removeemm = 0xc960;
static const uint16 addr_setupemm = 0xc95c;
Expand Down Expand Up @@ -1596,7 +1595,7 @@ class DreamGenContext : public Context {
void mainman();
void mansatstill();
void channel1only();
void checkbasemem();
//void checkbasemem();
void lastfolder();
void transfermap();
void showmonk();
Expand Down
1 change: 0 additions & 1 deletion engines/dreamweb/stubs.cpp
Expand Up @@ -41,7 +41,6 @@ void DreamGenContext::dreamweb() {
}

seecommandtail();
checkbasemem();
soundstartup();
setkeyboardint();
setupemm();
Expand Down

0 comments on commit 63a9416

Please sign in to comment.