summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-08 22:03:53 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-08 22:03:53 -0500
commit149d308a67fe75781873c8da24a00e587935a689 (patch)
tree471d92f59614f1cd48a4a1bea4585bdd13b48032 /src
parenta8833519c9ccda46fe60b314f8e6624ca7388c8a (diff)
nocashgba printf
Diffstat (limited to 'src')
-rw-r--r--src/isagbprn.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/isagbprn.c b/src/isagbprn.c
index d2a41a9db..a2f9b5241 100644
--- a/src/isagbprn.c
+++ b/src/isagbprn.c
@@ -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)
{
*(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