Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/JSystem/JHostIO/JORServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ JOREventCallbackListNode::~JOREventCallbackListNode() {
JORRemove();
}

#if DEBUG
void JORReflexible::listen(u32 command, const JOREvent* event) {
switch (command) {
case JORServer::ECommand_GenObjInfo:
Expand Down Expand Up @@ -110,6 +111,7 @@ void JORReflexible::listenPropertyEvent(const JORPropertyEvent* pEvent) {
return;
}
}
#endif

JORServer* JORServer::instance;

Expand Down Expand Up @@ -195,9 +197,11 @@ void JORServer::receive(const char* pBuffer, s32 length) {
JORNodeEvent* pEvent = (JORNodeEvent*)(pBuffer + stream.getPosition());
stream.skip(4);

#if DEBUG
if (stream.isGood()) {
reinterpret_cast<JORReflexible*>(obj_addr)->listen(command, pEvent);
}
#endif
}
break;
case ECommand_PropertyEvent: {
Expand All @@ -210,18 +214,22 @@ void JORServer::receive(const char* pBuffer, s32 length) {
stream.skip(pEvent->field_0x14);
}

#if DEBUG
if (stream.isGood()) {
reinterpret_cast<JORReflexible*>(obj_addr)->listen(command, pEvent);
}
#endif
}
break;
case ECommand_GenObjInfo: {
u32 obj_addr;
stream.read(obj_addr);

#if DEBUG
if (stream.isGood()) {
reinterpret_cast<JORReflexible*>(obj_addr)->listen(command, NULL);
}
#endif
}
break;
case ECommand_FIO:
Expand Down