mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-27 23:45:55 -04:00
Adding JHostID files and stubs
This commit is contained in:
@@ -576,6 +576,11 @@ set(JSYSTEM_FILES
|
||||
src/JSystem/JMath/JMath.cpp
|
||||
src/JSystem/JMath/random.cpp
|
||||
src/JSystem/JMath/JMATrigonometric.cpp
|
||||
src/JSystem/JHostIO/JORHostInfo.cpp
|
||||
src/JSystem/JHostIO/JORServer.cpp
|
||||
src/JSystem/JHostIO/JHIhioASync.cpp
|
||||
src/JSystem/JHostIO/JHIRMcc.cpp
|
||||
src/JSystem/JHostIO/JHIMccBuf.cpp
|
||||
)
|
||||
|
||||
set(REL_FILES
|
||||
|
||||
@@ -32,6 +32,7 @@ JOREventCallbackListNode::~JOREventCallbackListNode() {
|
||||
JORRemove();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
void JORReflexible::listen(u32 command, const JOREvent* event) {
|
||||
switch (command) {
|
||||
case JORServer::ECommand_GenObjInfo:
|
||||
@@ -110,6 +111,7 @@ void JORReflexible::listenPropertyEvent(const JORPropertyEvent* pEvent) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
JORServer* JORServer::instance;
|
||||
|
||||
@@ -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: {
|
||||
@@ -210,18 +214,21 @@ 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:
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include <dolphin/gf/GFGeometry.h>
|
||||
#include <dolphin/gf/GFTev.h>
|
||||
#include <dolphin/gf/GFLight.h>
|
||||
#include <revolution/hio2.h>
|
||||
#include <dolphin/hio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -1312,3 +1314,43 @@ void* __memcpy(void* a, const void* b, int c) {
|
||||
puts("__cntlzw is a stub");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
BOOL HIO2Close(s32 handle) {
|
||||
puts("HIO2Close is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIO2EnumDevices(HIO2EnumCallback callback) {
|
||||
puts("HIO2EnumDevices is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIO2Init(void) {
|
||||
puts("HIO2Init is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
s32 HIO2Open(HIO2DeviceType type, HIO2UnkCallback exiCb, HIO2DisconnectCallback disconnectCb) {
|
||||
puts("HIO2Open is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL HIO2Read(s32 handle, u32 addr, void* buffer, s32 size) {
|
||||
puts("HIO2Read is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIO2Write(s32 handle, u32 addr, void* buffer, s32 size) {
|
||||
puts("HIO2Write is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIORead(u32 addr, void* buffer, s32 size) {
|
||||
puts("HIORead is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIOWrite(u32 addr, void* buffer, s32 size) {
|
||||
puts("HIOWrite is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user