diff --git a/a2bejwld.xcodeproj/project.xcworkspace/xcuserdata/jrand.xcuserdatad/UserInterfaceState.xcuserstate b/a2bejwld.xcodeproj/project.xcworkspace/xcuserdata/jrand.xcuserdatad/UserInterfaceState.xcuserstate index ed58457..ce21c72 100644 Binary files a/a2bejwld.xcodeproj/project.xcworkspace/xcuserdata/jrand.xcuserdatad/UserInterfaceState.xcuserstate and b/a2bejwld.xcodeproj/project.xcworkspace/xcuserdata/jrand.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/a2bejwld/Makefile b/a2bejwld/Makefile index 1bbf72a..a51ce92 100644 --- a/a2bejwld/Makefile +++ b/a2bejwld/Makefile @@ -71,6 +71,7 @@ SRCDIRS+= # If you want to add arguments to the compile commandline, add them # to this variable: +# CFLAGS += -DTOTAL_REPLAY_BUILD CFLAGS += -Os # If you want to add arguments to the assembly commandline, add them diff --git a/a2bejwld/main.c b/a2bejwld/main.c index bf85361..f7b7f83 100644 --- a/a2bejwld/main.c +++ b/a2bejwld/main.c @@ -9,14 +9,27 @@ #include +#include #include "ui.h" // Implementation +#ifdef TOTAL_REPLAY_BUILD +void totalReplayQuit(void) +{ + __asm__ ("BIT $C082"); + __asm__ ("JMP ($FFFC)"); +} +#endif + int main(void) { +#ifdef TOTAL_REPLAY_BUILD + atexit(totalReplayQuit); +#endif + initUI(); printInstructions(); diff --git a/a2bejwld/ui.c b/a2bejwld/ui.c index 6b6cd33..cbdaa92 100644 --- a/a2bejwld/ui.c +++ b/a2bejwld/ui.c @@ -26,7 +26,13 @@ // Defines #define SAVE_OPTIONS_FILE "a2bejwld.opts" -#define VERSION "v2.1a1" +#define BASE_VERSION "v2.1" + +#ifdef TOTAL_REPLAY_BUILD +#define VERSION BASE_VERSION ".tr" +#else +#define VERSION BASE_VERSION +#endif // Typedefs