summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-05 01:16:28 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-05 01:16:28 -0500
commitdeac7fd3706ea9de855330881e2555a8c70d72f3 (patch)
treed2e63e9261813498b09c255e2b7a1afd6e872c7f /src
parent5b5fedfc78a9f2751d001a92c65be86e3ffefcc1 (diff)
parentf5fbe5b66226f4e7e38fe5d4638831d1ce19b36b (diff)
remove nogba support, crap implementation is crap
Diffstat (limited to 'src')
-rwxr-xr-xsrc/libs/libisagbprn.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/libs/libisagbprn.c b/src/libs/libisagbprn.c
index ef0d51f26..867044217 100755
--- a/src/libs/libisagbprn.c
+++ b/src/libs/libisagbprn.c
@@ -9,6 +9,8 @@
#define AGB_PRINT_PROTECT_ADDR 0x9FE2FFE
#define WSCNT_DATA (WAITCNT_PHI_OUT_16MHZ | WAITCNT_WS0_S_2 | WAITCNT_WS0_N_4)
+// TODO: make no$gba support not shit
+
// for auto no$gba support, the string "no$gba" should be at this address.
#define NOGBAIDADDR 0x4FFFA00
#define NOGBAPRINTADDR 0x4FFFA14
@@ -66,8 +68,6 @@ void AGBPutc(const char cChr)
AGBPrintFlush1Block();
}
-#undef AGBPrint // dont break the function
-
void AGBPrint(const char *pBuf)
{
volatile struct AGBPrintStruct *pPrint = (struct AGBPrintStruct *)AGB_PRINT_STRUCT_ADDR;
@@ -82,15 +82,6 @@ void AGBPrint(const char *pBuf)
*pWSCNT = nOldWSCNT;
}
-// I have to define this twice to avoid messing AGBPrint up. If there's a better way of doing this, please fix it.
-// currently cannot use IsNoGba due to no$gba doing a gloriously fuck up of a job and
-// breaking the version identifier.
-#define AGBPrint(pBuf) \
-{ \
- NOGBAPrint(pBuf); \
- AGBPrint(pBuf); \
-}
-
void AGBPrintf(const char *pBuf, ...)
{
char bufPrint[0x100];
@@ -165,11 +156,12 @@ void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopP
}
}
+// TODO: Find a way to seamlessly support no$gba without shit hack defines
// nogba print function
-
+/*
void NOGBAPrint(const char *pBuf)
{
*(volatile u32*)NOGBAPRINTADDR = (u32)pBuf;
-}
+}*/
#endif