DREAMWEB: Removed the check that there is enough memory

This commit is contained in:
Bertrand Augereau 2011-11-16 12:54:26 +01:00
parent ec14d38cf1
commit 63a9416bd1
4 changed files with 2 additions and 14 deletions

View File

@ -211,6 +211,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'transfertext',
'splitintolines',
'initrain',
'checkbasemem',
], skip_output = [
# These functions are processed but not output
'dreamweb',

View File

@ -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;
@ -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;

View File

@ -128,7 +128,6 @@ public:
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;
@ -1596,7 +1595,7 @@ public:
void mainman();
void mansatstill();
void channel1only();
void checkbasemem();
//void checkbasemem();
void lastfolder();
void transfermap();
void showmonk();

View File

@ -41,7 +41,6 @@ void DreamGenContext::dreamweb() {
}
seecommandtail();
checkbasemem();
soundstartup();
setkeyboardint();
setupemm();