mirror of https://github.com/PrimeDecomp/prime.git
Use MUSY_DEBUG for debug prints
This commit is contained in:
parent
87bb2a9e7d
commit
07e9934d0a
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
#include "musyx/musyx_priv.h"
|
#include "musyx/musyx_priv.h"
|
||||||
|
|
||||||
extern void OSReport(const char*, ...);
|
|
||||||
|
|
||||||
extern void DCStoreRange(void* addr, u32 nBytes);
|
extern void DCStoreRange(void* addr, u32 nBytes);
|
||||||
|
|
||||||
static volatile const u16 itdOffTab[128] = {
|
static volatile const u16 itdOffTab[128] = {
|
||||||
|
|
|
@ -138,9 +138,7 @@ void aramInit(unsigned long length) {
|
||||||
aramWrite = aramBase + sizeof(s16) * 640;
|
aramWrite = aramBase + sizeof(s16) * 640;
|
||||||
aramUploadCallback = NULL;
|
aramUploadCallback = NULL;
|
||||||
InitStreamBuffers();
|
InitStreamBuffers();
|
||||||
#if _DEBUG
|
MUSY_DEBUG("MusyX ARAM handler initialized\n");
|
||||||
OSReport("MusyX ARAM handler initialized\n");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void aramExit() {}
|
void aramExit() {}
|
||||||
|
@ -259,9 +257,7 @@ unsigned char aramAllocateStreamBuffer(unsigned long len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oSb == NULL) {
|
if (oSb == NULL) {
|
||||||
#if _DEBUG
|
MUSY_DEBUG("No stream buffer slots available or ARAM.\n\n");
|
||||||
OSReport("No stream buffer slots available or ARAM.\n\n");
|
|
||||||
#endif
|
|
||||||
return 0xFF;
|
return 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -285,7 +281,7 @@ void aramFreeStreamBuffer(unsigned char id) {
|
||||||
struct STREAM_BUFFER* lastSb; // r29
|
struct STREAM_BUFFER* lastSb; // r29
|
||||||
struct STREAM_BUFFER* nextSb; // r27
|
struct STREAM_BUFFER* nextSb; // r27
|
||||||
unsigned long minAddr; // r28
|
unsigned long minAddr; // r28
|
||||||
|
|
||||||
MUSY_ASSERT_MSG(id != 0xFF, "Stream buffer ID is invalid");
|
MUSY_ASSERT_MSG(id != 0xFF, "Stream buffer ID is invalid");
|
||||||
fSb = &aramStreamBuffers[id];
|
fSb = &aramStreamBuffers[id];
|
||||||
lastSb = NULL;
|
lastSb = NULL;
|
||||||
|
|
Loading…
Reference in New Issue