diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-08 22:01:47 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-08 22:01:47 -0500 |
commit | dcf12f9ecdbaab26afb8899eaa05f4cab09a5f82 (patch) | |
tree | d74dc57ee7437adc3059699be0a8142bffd80778 /src | |
parent | 1c6c7da6fba8903d8eff02ac12465a4098ebca47 (diff) |
nocashgba printf
Diffstat (limited to 'src')
-rwxr-xr-x | src/libs/libisagbprn.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libs/libisagbprn.c b/src/libs/libisagbprn.c index 007f90bb7..a9656f3c5 100755 --- a/src/libs/libisagbprn.c +++ b/src/libs/libisagbprn.c @@ -155,12 +155,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 |