Make the rest of JSystem compiled in DEBUG

This commit is contained in:
PJB3005
2026-02-25 21:28:50 +01:00
parent b34ba7b4f0
commit cf5ce234b6
4 changed files with 23 additions and 3 deletions
+4
View File
@@ -158,7 +158,11 @@ bool JAISe::prepare_getSeqData_() {
switch (inner_.seMgr->getSeqDataMgr()->getSeqData(getID(), &inner_.mSeqData)) {
case 0:
#if TARGET_PC
OS_REPORT("Failed In Loading Sequence Data:SE(0x%08x)\n", (u32)getID());
#else
OS_REPORT("Failed In Loading Sequence Data:SE(0x%08x)\n", *(u32*)&getID());
#endif
status_.state.unk = 2;
return false;
case 1:
+9
View File
@@ -70,3 +70,12 @@ JGadget_outMessage& JGadget_outMessage::operator<<(const void* data) {
void JGadget_outMessage::warning(const char* file, int line, const char* message) {
JUTAssertion::setWarningMessage(3, (char*)file, line, message);
}
#if TARGET_PC
JGadget_outMessage& JGadget_outMessage::operator<<(u16 value) {
char sz[64];
snprintf(sz, sizeof(sz), "%uh", value);
return *this << sz;
}
#endif