both print defines for nocashgba

This commit is contained in:
ProjectRevoTPP
2018-01-09 19:39:29 -05:00
parent 9e8079fc1b
commit bdf242c287
+3 -2
View File
@@ -12,7 +12,8 @@
// originally for auto no$gba support, the string "no$gba" should be at this address, // originally for auto no$gba support, the string "no$gba" should be at this address,
// the user needs to read this string out as the memory viewer won't show it. // the user needs to read this string out as the memory viewer won't show it.
#define NOCASHGBAIDADDR 0x4FFFA00 #define NOCASHGBAIDADDR 0x4FFFA00
#define NOCASHGBAPRINTADDR 0x4FFFA14 #define NOCASHGBAPRINTADDR1 0x4FFFA10 // automatically adds a newline after the string has finished
#define NOCASHGBAPRINTADDR2 0x4FFFA14 // does not automatically add the newline. by default, NOCASHGBAPRINTADDR2 is used. this is used to keep strings consistent between no$gba and VBA-RR, but a user can choose to forgo this.
struct AGBPrintStruct struct AGBPrintStruct
{ {
@@ -160,7 +161,7 @@ void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopP
/* /*
void NoCashGBAPrint(const char *pBuf) void NoCashGBAPrint(const char *pBuf)
{ {
*(volatile u32*)NOCASHGBAPRINTADDR = (u32)pBuf; *(volatile u32*)NOCASHGBAPRINTADDR2 = (u32)pBuf;
} }
void NoCashGBAPrintf(const char *pBuf, ...) void NoCashGBAPrintf(const char *pBuf, ...)