diff --git a/md2teach/io.c b/md2teach/io.c index 307736a..f04739c 100644 --- a/md2teach/io.c +++ b/md2teach/io.c @@ -23,10 +23,6 @@ // Defines -// This enables a workaround for creating the resources by writing a .rez file rather than -// writing it directly. At the moment, Golden Gate does not support writing resources -// but this will let me test it without that capability. - #define TEACH_FILE_TYPE 0x50 #define TEACH_AUX_TYPE 0x5445 @@ -36,7 +32,6 @@ #define STYLE_BLOCK_NUM 1 - // Typedefs typedef struct tWindowPos diff --git a/md2teach/main.c b/md2teach/main.c index 706cb49..983c9a3 100644 --- a/md2teach/main.c +++ b/md2teach/main.c @@ -43,7 +43,7 @@ int generateRez = 0; static void printUsage(void) { - fprintf(stderr, "USAGE: %s [ -d -r ] inputfile outputfile\n", commandName); + fprintf(stderr, "USAGE: %s [ -d ] [ -r ] inputfile outputfile\n", commandName); } @@ -65,6 +65,7 @@ static int parseArgs(int argc, char * argv[]) case 'd': debugEnabled = 1; break; + case 'r': generateRez = 1; break; diff --git a/md2teach/make/tail.mk b/md2teach/make/tail.mk index ad5ffa4..ce8448f 100644 --- a/md2teach/make/tail.mk +++ b/md2teach/make/tail.mk @@ -191,7 +191,7 @@ executeGUI: all make/launchEmulator "$(DISKIMAGE)" "$(DESTBOOTIMAGE)" executeShell: all - $(ORCA) --mem $(TARGETDIR)/$(PGM) -d test.md $(TARGETDIR)/outfile.txt + $(ORCA) --mem $(TARGETDIR)/$(PGM) -d -r test.md $(TARGETDIR)/outfile.txt make/teachRez $(TARGETDIR)/outfile.txt make/createDiskImage "$(DISKIMAGE)" $(DESTBOOTIMAGE) "$(TARGETDIR)/$(PGM)" "$(TARGETDIR)/outfile.txt" test.md make/launchEmulator "$(DISKIMAGE)" "$(DESTBOOTIMAGE)"