nocashgba printf

This commit is contained in:
ProjectRevoTPP
2018-01-08 22:03:53 -05:00
parent a8833519c9
commit 149d308a67
+11 -1
View File
@@ -156,12 +156,22 @@ void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopP
} }
} }
// no$gba print function, uncomment to use // no$gba print functions, uncomment to use
/* /*
void NoCashGBAPrint(const char *pBuf) void NoCashGBAPrint(const char *pBuf)
{ {
*(volatile u32*)NOCASHGBAPRINTADDR = (u32)pBuf; *(volatile u32*)NOCASHGBAPRINTADDR = (u32)pBuf;
} }
void NoCashGBAPrintf(const char *pBuf, ...)
{
char bufPrint[0x100];
va_list vArgv;
va_start(vArgv, pBuf);
vsprintf(bufPrint, pBuf, vArgv);
va_end(vArgv);
NoCashGBAPrint(bufPrint);
}
*/ */
#endif #endif