Skip to content

Commit

Permalink
DREAMWEB: No need to generate unused C++ for 'makename'
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Aug 18, 2011
1 parent 1dff2eb commit 089e20e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -128,6 +128,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'calcfrframe',
'finalframe',
'commandonly',
'makename',
], skip_output = [
# These functions are processed but not output
'dreamweb',
Expand Down
16 changes: 0 additions & 16 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -17816,21 +17816,6 @@ void DreamGenContext::readsetdata() {
closefile();
}

void DreamGenContext::makename() {
STACK_CHECK;
si = dx;
di = offset_place;
transfer:
al = cs.byte(si);
cs.byte(di) = al;
_inc(si);
_inc(di);
_cmp(al, 0);
if (!flags.z())
goto transfer;
dx = offset_id;
}



void DreamGenContext::__start() {
Expand Down Expand Up @@ -19055,7 +19040,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_createfile: createfile(); break;
case addr_openfile: openfile(); break;
case addr_openfilefromc: openfilefromc(); break;
case addr_makename: makename(); break;
case addr_openfilenocheck: openfilenocheck(); break;
case addr_openforsave: openforsave(); break;
case addr_closefile: closefile(); break;
Expand Down
19 changes: 8 additions & 11 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -46,7 +46,6 @@ class DreamGenContext : public Context {
static const uint16 addr_closefile = 0xcba4;
static const uint16 addr_openforsave = 0xcba0;
static const uint16 addr_openfilenocheck = 0xcb9c;
static const uint16 addr_makename = 0xcb98;
static const uint16 addr_openfilefromc = 0xcb94;
static const uint16 addr_openfile = 0xcb90;
static const uint16 addr_createfile = 0xcb8c;
Expand Down Expand Up @@ -696,20 +695,18 @@ class DreamGenContext : public Context {
static const uint16 addr_foghornsound = 0xc008;
static const uint16 addr_intromusic = 0xc004;
static const uint16 addr_alleybarksound = 0xc000;
static const uint16 offset_place = 0x17ad;
static const uint16 offset_quitlist = 0x0a84;
static const uint16 offset_savelist = 0x0f44;
static const uint16 offset_mainlist = 0x1402;
static const uint16 offset_gameerror8 = 0x113f;
static const uint16 offset_keys = 0x0b14;
static const uint16 offset_blinktab = 0x1700;
static const uint16 offset_error2patch = 0x0ff6;
static const uint16 offset_openchangesize = 0x0a1c;
static const uint16 offset_loadlist = 0x0ef0;
static const uint16 offset_keys = 0x0b14;
static const uint16 offset_mainlist2 = 0x1440;
static const uint16 offset_uselist = 0x0ba8;
static const uint16 offset_gameerror2 = 0x0fb2;
static const uint16 offset_id = 0x17ab;
static const uint16 offset_loadlist = 0x0ef0;
static const uint16 offset_gameerror6 = 0x10be;
static const uint16 offset_flashmousetab = 0x1707;
static const uint16 offset_speechfile = 0x13f1;
Expand Down Expand Up @@ -1394,6 +1391,7 @@ class DreamGenContext : public Context {
void usewall();
void opentomb();
//void findobname();
//void makename();
void buttonfour();
void animpointer();
//void lockmon();
Expand Down Expand Up @@ -1698,7 +1696,7 @@ class DreamGenContext : public Context {
void madman();
void createpanel();
void turnpathon();
void showmainops();
void enablesoundint();
void madmanstelly();
void constant();
void loadroomssample();
Expand Down Expand Up @@ -1742,7 +1740,7 @@ class DreamGenContext : public Context {
void checkbasemem();
void transfertext();
void searchforsame();
void enablesoundint();
void showmainops();
void getback1();
void setlocation();
void fadefromwhite();
Expand Down Expand Up @@ -1924,7 +1922,7 @@ class DreamGenContext : public Context {
void readmouse4();
void openryan();
void readmouse1();
void showman();
void readmouse3();
void readmouse2();
void newplace();
//void movemap();
Expand All @@ -1934,7 +1932,6 @@ class DreamGenContext : public Context {
void usecardreader3();
void tattooman();
void usehandle();
void quitkey();
void openfile();
void usecharset1();
//void makenextblock();
Expand Down Expand Up @@ -2001,7 +1998,7 @@ class DreamGenContext : public Context {
void intromonks2();
void usewinch();
void setbotright();
void readmouse3();
void showman();
void showfirstuse();
void setupemm();
void usefullcart();
Expand Down Expand Up @@ -2047,7 +2044,7 @@ class DreamGenContext : public Context {
void dosometalk();
void usecart();
void intromusic();
void makename();
void quitkey();
void processtrigger();
void monmessage();
void readdesticon();
Expand Down

0 comments on commit 089e20e

Please sign in to comment.