mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-08 04:15:08 -04:00
stub log
This commit is contained in:
+166
-164
@@ -39,6 +39,8 @@ static bool PerfInitialized = false;
|
||||
#endif
|
||||
|
||||
|
||||
#define STUB_LOG(v) // puts(v);
|
||||
|
||||
|
||||
// ==========================================================================
|
||||
// General OS
|
||||
@@ -334,16 +336,16 @@ void OSSetAlarm(OSAlarm* alarm, OSTime tick, OSAlarmHandler handler) {}
|
||||
|
||||
#pragma mark SOUND
|
||||
void SoundChoID(int a, int b) {
|
||||
puts("SoundChoID is a stub");
|
||||
STUB_LOG("SoundChoID is a stub");
|
||||
}
|
||||
void SoundPan(int a, int b, int c) {
|
||||
puts("SoundPan is a stub");
|
||||
STUB_LOG("SoundPan is a stub");
|
||||
}
|
||||
void SoundPitch(u16 a, int b) {
|
||||
puts("SoundPitch is a stub");
|
||||
STUB_LOG("SoundPitch is a stub");
|
||||
}
|
||||
void SoundRevID(int a, int b) {
|
||||
puts("SoundRevID is a stub");
|
||||
STUB_LOG("SoundRevID is a stub");
|
||||
}
|
||||
|
||||
#pragma mark CARD
|
||||
@@ -351,150 +353,150 @@ void SoundRevID(int a, int b) {
|
||||
#include <dolphin/card.h>
|
||||
|
||||
extern "C" int CARDProbe(s32 chan) {
|
||||
puts("CARDProbe is a stub");
|
||||
STUB_LOG("CARDProbe is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDCancel(CARDFileInfo* fileInfo) {
|
||||
puts("CARDCancel is a stub");
|
||||
STUB_LOG("CARDCancel is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDCheck(s32 chan) {
|
||||
puts("CARDCheck is a stub");
|
||||
STUB_LOG("CARDCheck is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDCheckAsync(s32 chan, CARDCallback callback) {
|
||||
puts("CARDCheckAsync is a stub");
|
||||
STUB_LOG("CARDCheckAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDClose(CARDFileInfo* fileInfo) {
|
||||
puts("CARDClose is a stub");
|
||||
STUB_LOG("CARDClose is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDCreate(s32 chan, const char* fileName, u32 size, CARDFileInfo* fileInfo) {
|
||||
puts("CARDCreate is a stub");
|
||||
STUB_LOG("CARDCreate is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDCreateAsync(s32 chan, const char* fileName, u32 size, CARDFileInfo* fileInfo,
|
||||
CARDCallback callback) {
|
||||
puts("CARDCreateAsync is a stub");
|
||||
STUB_LOG("CARDCreateAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDDelete(s32 chan, const char* fileName) {
|
||||
puts("CARDDelete is a stub");
|
||||
STUB_LOG("CARDDelete is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDDeleteAsync(s32 chan, const char* fileName, CARDCallback callback) {
|
||||
puts("CARDDeleteAsync is a stub");
|
||||
STUB_LOG("CARDDeleteAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDFastDeleteAsync(s32 chan, s32 fileNo, CARDCallback callback) {
|
||||
puts("CARDFastDeleteAsync is a stub");
|
||||
STUB_LOG("CARDFastDeleteAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDFastOpen(s32 chan, s32 fileNo, CARDFileInfo* fileInfo) {
|
||||
puts("CARDFastOpen is a stub");
|
||||
STUB_LOG("CARDFastOpen is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDFormat(s32 chan) {
|
||||
puts("CARDFormat is a stub");
|
||||
STUB_LOG("CARDFormat is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDFreeBlocks(s32 chan, s32* byteNotUsed, s32* filesNotUsed) {
|
||||
puts("CARDFreeBlocks is a stub");
|
||||
STUB_LOG("CARDFreeBlocks is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDGetResultCode(s32 chan) {
|
||||
puts("CARDGetResultCode is a stub");
|
||||
STUB_LOG("CARDGetResultCode is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDGetStatus(s32 chan, s32 fileNo, CARDStat* stat) {
|
||||
puts("CARDGetStatus is a stub");
|
||||
STUB_LOG("CARDGetStatus is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDGetSectorSize(s32 chan, u32* size) {
|
||||
puts("CARDGetSectorSize is a stub");
|
||||
STUB_LOG("CARDGetSectorSize is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CARDInit() {
|
||||
puts("CARDInit is a stub");
|
||||
STUB_LOG("CARDInit is a stub");
|
||||
}
|
||||
|
||||
s32 CARDMount(s32 chan, void* workArea, CARDCallback detachCallback) {
|
||||
puts("CARDMount is a stub");
|
||||
STUB_LOG("CARDMount is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDMountAsync(s32 chan, void* workArea, CARDCallback detachCallback,
|
||||
CARDCallback attachCallback) {
|
||||
puts("CARDMountAsync is a stub");
|
||||
STUB_LOG("CARDMountAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDOpen(s32 chan, const char* fileName, CARDFileInfo* fileInfo) {
|
||||
puts("CARDOpen is a stub");
|
||||
STUB_LOG("CARDOpen is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDProbeEx(s32 chan, s32* memSize, s32* sectorSize) {
|
||||
puts("CARDProbeEx is a stub");
|
||||
STUB_LOG("CARDProbeEx is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDRead(CARDFileInfo* fileInfo, void* addr, s32 length, s32 offset) {
|
||||
puts("CARDRead is a stub");
|
||||
STUB_LOG("CARDRead is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDReadAsync(CARDFileInfo* fileInfo, void* addr, s32 length, s32 offset,
|
||||
CARDCallback callback) {
|
||||
puts("CARDReadAsync is a stub");
|
||||
STUB_LOG("CARDReadAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDRename(s32 chan, const char* oldName, const char* newName) {
|
||||
puts("CARDRename is a stub");
|
||||
STUB_LOG("CARDRename is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDRenameAsync(s32 chan, const char* oldName, const char* newName, CARDCallback callback) {
|
||||
puts("CARDRenameAsync is a stub");
|
||||
STUB_LOG("CARDRenameAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDSetStatusAsync(s32 chan, s32 fileNo, CARDStat* stat, CARDCallback callback) {
|
||||
puts("CARDSetStatusAsync is a stub");
|
||||
STUB_LOG("CARDSetStatusAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDUnmount(s32 chan) {
|
||||
puts("CARDUnmount is a stub");
|
||||
STUB_LOG("CARDUnmount is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" s32 CARDWrite(CARDFileInfo* fileInfo, void* addr, s32 length, s32 offset) {
|
||||
puts("CARDWrite is a stub");
|
||||
STUB_LOG("CARDWrite is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 CARDWriteAsync(CARDFileInfo* fileInfo, const void* addr, s32 length, s32 offset,
|
||||
CARDCallback callback) {
|
||||
puts("CARDWriteAsync is a stub");
|
||||
STUB_LOG("CARDWriteAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -507,73 +509,73 @@ s32 CARDSetStatus(s32 chan, s32 fileNo, CARDStat* stat) {
|
||||
}
|
||||
|
||||
s32 __CARDFormatRegionAsync(int a, int b) {
|
||||
puts("__CARDFormatRegionAsync is a stub");
|
||||
STUB_LOG("__CARDFormatRegionAsync is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma mark DC
|
||||
|
||||
void DCFlushRange(void* addr, u32 nBytes) {
|
||||
// puts("DCFlushRange is a stub");
|
||||
// STUB_LOG("DCFlushRange is a stub");
|
||||
}
|
||||
|
||||
void DCFlushRangeNoSync(void* addr, u32 nBytes) {
|
||||
// puts("DCFlushRangeNoSync is a stub");
|
||||
// STUB_LOG("DCFlushRangeNoSync is a stub");
|
||||
}
|
||||
|
||||
void DCInvalidateRange(void* addr, u32 nBytes) {
|
||||
// puts("DCInvalidateRange is a stub");
|
||||
// STUB_LOG("DCInvalidateRange is a stub");
|
||||
}
|
||||
|
||||
void DCStoreRange(void* addr, u32 nBytes) {
|
||||
// puts("DCStoreRange is a stub");
|
||||
// STUB_LOG("DCStoreRange is a stub");
|
||||
}
|
||||
|
||||
void DCStoreRangeNoSync(void* addr, u32 nBytes) {
|
||||
// puts("DCStoreRangeNoSync is a stub");
|
||||
// STUB_LOG("DCStoreRangeNoSync is a stub");
|
||||
}
|
||||
|
||||
#pragma mark EXI
|
||||
|
||||
BOOL EXIDeselect(int chan) {
|
||||
puts("EXIDeselect is a stub");
|
||||
STUB_LOG("EXIDeselect is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL EXIDma(int chan, void* buffer, s32 size, int d, int e) {
|
||||
puts("EXIDma is a stub");
|
||||
STUB_LOG("EXIDma is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL EXIImm(int chan, u32* b, int c, int d, int e) {
|
||||
puts("EXIImm is a stub");
|
||||
STUB_LOG("EXIImm is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL EXILock(int chan, int b, int c) {
|
||||
puts("EXILock is a stub");
|
||||
STUB_LOG("EXILock is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL EXISelect(int chan, int b, int c) {
|
||||
puts("EXISelect is a stub");
|
||||
STUB_LOG("EXISelect is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL EXISync(int chan) {
|
||||
puts("EXISync is a stub");
|
||||
STUB_LOG("EXISync is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL EXIUnlock(int chan) {
|
||||
puts("EXIUnlock is a stub");
|
||||
STUB_LOG("EXIUnlock is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#pragma mark LC
|
||||
|
||||
void LCEnable() {
|
||||
puts("LCEnable is a stub");
|
||||
STUB_LOG("LCEnable is a stub");
|
||||
}
|
||||
|
||||
// OS-related functions consolidated under "# pragma mark OS" further up
|
||||
@@ -592,11 +594,11 @@ static VIRetraceCallback sVIPostRetraceCallback = NULL;
|
||||
extern "C" {
|
||||
|
||||
void VIConfigure(const GXRenderModeObj* rm) {
|
||||
// puts("VIConfigure is a stub");
|
||||
// STUB_LOG("VIConfigure is a stub");
|
||||
}
|
||||
|
||||
void VIConfigurePan(u16 xOrg, u16 yOrg, u16 width, u16 height) {
|
||||
// puts("VIConfigurePan is a stub");
|
||||
// STUB_LOG("VIConfigurePan is a stub");
|
||||
}
|
||||
|
||||
u32 VIGetRetraceCount() {
|
||||
@@ -608,11 +610,11 @@ u32 VIGetNextField() {
|
||||
}
|
||||
|
||||
void VISetBlack(BOOL black) {
|
||||
// puts("VISetBlack is a stub");
|
||||
// STUB_LOG("VISetBlack is a stub");
|
||||
}
|
||||
|
||||
void VISetNextFrameBuffer(void* fb) {
|
||||
// puts("VISetNextFrameBuffer is a stub");
|
||||
// STUB_LOG("VISetNextFrameBuffer is a stub");
|
||||
}
|
||||
|
||||
void VIWaitForRetrace() {
|
||||
@@ -654,41 +656,41 @@ VIRetraceCallback VISetPreRetraceCallback(VIRetraceCallback cb) {
|
||||
#pragma mark DSP
|
||||
#include <dolphin/dsp.h>
|
||||
extern "C" void __DSP_insert_task(DSPTaskInfo* task) {
|
||||
puts("__DSP_insert_task is a stub");
|
||||
STUB_LOG("__DSP_insert_task is a stub");
|
||||
}
|
||||
|
||||
extern "C" void __DSP_boot_task(DSPTaskInfo*) {
|
||||
puts("__DSP_boot_task is a stub");
|
||||
STUB_LOG("__DSP_boot_task is a stub");
|
||||
}
|
||||
|
||||
extern "C" void __DSP_exec_task(DSPTaskInfo*, DSPTaskInfo*) {
|
||||
puts("__DSP_exec_task is a stub");
|
||||
STUB_LOG("__DSP_exec_task is a stub");
|
||||
}
|
||||
|
||||
extern "C" void __DSP_remove_task(DSPTaskInfo* task) {
|
||||
puts("__DSP_remove_task is a stub");
|
||||
STUB_LOG("__DSP_remove_task is a stub");
|
||||
}
|
||||
|
||||
void DSPAssertInt(void) {
|
||||
puts("DSPAssertInt is a stub");
|
||||
STUB_LOG("DSPAssertInt is a stub");
|
||||
}
|
||||
u32 DSPCheckMailFromDSP(void) {
|
||||
puts("DSPCheckMailFromDSP is a stub");
|
||||
STUB_LOG("DSPCheckMailFromDSP is a stub");
|
||||
return 0;
|
||||
}
|
||||
u32 DSPCheckMailToDSP(void) {
|
||||
puts("DSPCheckMailToDSP is a stub");
|
||||
STUB_LOG("DSPCheckMailToDSP is a stub");
|
||||
return 0;
|
||||
}
|
||||
void DSPInit(void) {
|
||||
puts("DSPInit is a stub");
|
||||
STUB_LOG("DSPInit is a stub");
|
||||
}
|
||||
u32 DSPReadMailFromDSP(void) {
|
||||
puts("DSPReadMailFromDSP is a stub");
|
||||
STUB_LOG("DSPReadMailFromDSP is a stub");
|
||||
return 0;
|
||||
}
|
||||
void DSPSendMailToDSP(u32 mail) {
|
||||
puts("DSPSendMailToDSP is a stub");
|
||||
STUB_LOG("DSPSendMailToDSP is a stub");
|
||||
}
|
||||
|
||||
#pragma mark Z2Audio
|
||||
@@ -697,7 +699,7 @@ public:
|
||||
void extensionProcess(s32, s32);
|
||||
};
|
||||
void Z2AudioCS::extensionProcess(s32, s32) {
|
||||
puts("Z2AudioMgr::play is a stub");
|
||||
STUB_LOG("Z2AudioMgr::play is a stub");
|
||||
}
|
||||
|
||||
#pragma mark JORServer
|
||||
@@ -732,21 +734,21 @@ JKRHeap* JKRHeap::sRootHeap2; // XXX this is defined for WII/SHIELD, should we
|
||||
#pragma mark mDoExt_onCupOnAupPacket
|
||||
#include <m_Do/m_Do_ext.h>
|
||||
mDoExt_offCupOnAupPacket::~mDoExt_offCupOnAupPacket() {
|
||||
puts("mDoExt_onCupOffAupPacket_c destructor is a stub");
|
||||
STUB_LOG("mDoExt_onCupOffAupPacket_c destructor is a stub");
|
||||
}
|
||||
#pragma mark mDoExt_onCupOffAupPacket
|
||||
mDoExt_onCupOffAupPacket::~mDoExt_onCupOffAupPacket() {
|
||||
puts("mDoExt_onCupOffAupPacket_c destructor is a stub");
|
||||
STUB_LOG("mDoExt_onCupOffAupPacket_c destructor is a stub");
|
||||
}
|
||||
|
||||
#pragma mark dKankyo_vrboxHIO_c
|
||||
#include <d/d_kankyo.h>
|
||||
void dKankyo_vrboxHIO_c::dKankyo_vrboxHIOInfoUpDateF() {
|
||||
puts("dKankyo_vrboxHIO_c::dKankyo_vrboxHIOInfoUpDateF is a stub");
|
||||
STUB_LOG("dKankyo_vrboxHIO_c::dKankyo_vrboxHIOInfoUpDateF is a stub");
|
||||
}
|
||||
|
||||
void dKankyo_lightHIO_c::dKankyo_lightHIOInfoUpDateF() {
|
||||
puts("dKankyo_lightHIO_c::dKankyo_lightHIOInfoUpDateF is a stub");
|
||||
STUB_LOG("dKankyo_lightHIO_c::dKankyo_lightHIOInfoUpDateF is a stub");
|
||||
}
|
||||
|
||||
#pragma mark dKankyo_HIO_c
|
||||
@@ -1216,36 +1218,36 @@ dKankyo_navyHIO_c::dKankyo_navyHIO_c() {
|
||||
#pragma mark AI
|
||||
#include <dolphin/ai.h>
|
||||
u32 AIGetDSPSampleRate(void) {
|
||||
puts("AIGetDSPSampleRate is a stub");
|
||||
STUB_LOG("AIGetDSPSampleRate is a stub");
|
||||
return 48000; // Default sample rate?
|
||||
}
|
||||
|
||||
void AIInit(u8* stack) {
|
||||
puts("AIInit is a stub");
|
||||
STUB_LOG("AIInit is a stub");
|
||||
// This function initializes the AI system, but we don't have any specific implementation here.
|
||||
// In a real scenario, it would set up the audio interface and prepare it for use.
|
||||
}
|
||||
|
||||
void AIInitDMA(u32 start_addr, u32 length) {
|
||||
puts("AIInitDMA is a stub");
|
||||
STUB_LOG("AIInitDMA is a stub");
|
||||
}
|
||||
|
||||
AIDCallback AIRegisterDMACallback(AIDCallback callback) {
|
||||
puts("AIRegisterDMACallback is a stub");
|
||||
STUB_LOG("AIRegisterDMACallback is a stub");
|
||||
return callback;
|
||||
}
|
||||
|
||||
void AISetDSPSampleRate(u32 rate) {
|
||||
// Should this link with the getsamplerate? this is very TODO
|
||||
puts("AISetDSPSampleRate is a stub");
|
||||
STUB_LOG("AISetDSPSampleRate is a stub");
|
||||
}
|
||||
|
||||
void AIStartDMA(void) {
|
||||
puts("AIStartDMA is a stub");
|
||||
STUB_LOG("AIStartDMA is a stub");
|
||||
}
|
||||
|
||||
void AIStopDMA(void) {
|
||||
puts("AIStopDMA is a stub");
|
||||
STUB_LOG("AIStopDMA is a stub");
|
||||
}
|
||||
|
||||
#pragma mark AR
|
||||
@@ -1333,27 +1335,27 @@ void ARQInit() {
|
||||
#pragma mark DVD
|
||||
#include <dolphin/dvd.h>
|
||||
s32 DVDCancel(volatile DVDCommandBlock* block) {
|
||||
puts("DVDCancel is a stub");
|
||||
STUB_LOG("DVDCancel is a stub");
|
||||
return 0;
|
||||
}
|
||||
s32 DVDCancel(DVDCommandBlock* block) {
|
||||
puts("DVDCancel is a stub");
|
||||
STUB_LOG("DVDCancel is a stub");
|
||||
return 0;
|
||||
}
|
||||
BOOL DVDChangeDir(const char* dirName) {
|
||||
puts("DVDChangeDir is a stub");
|
||||
STUB_LOG("DVDChangeDir is a stub");
|
||||
return TRUE;
|
||||
}
|
||||
BOOL DVDCheckDisk(void) {
|
||||
puts("DVDCheckDisk is a stub");
|
||||
STUB_LOG("DVDCheckDisk is a stub");
|
||||
return TRUE;
|
||||
}
|
||||
BOOL DVDClose(DVDFileInfo* fileInfo) {
|
||||
puts("DVDClose is a stub");
|
||||
STUB_LOG("DVDClose is a stub");
|
||||
return TRUE;
|
||||
}
|
||||
int DVDCloseDir(DVDDir* dir) {
|
||||
puts("DVDCloseDir is a stub");
|
||||
STUB_LOG("DVDCloseDir is a stub");
|
||||
return 0;
|
||||
}
|
||||
s32 DVDConvertPathToEntrynum(const char* pathPtr) {
|
||||
@@ -1378,19 +1380,19 @@ BOOL DVDFastOpen(s32 entrynum, DVDFileInfo* fileInfo) {
|
||||
return TRUE;
|
||||
}
|
||||
s32 DVDGetCommandBlockStatus(const DVDCommandBlock* block) {
|
||||
puts("DVDGetCommandBlockStatus is a stub");
|
||||
STUB_LOG("DVDGetCommandBlockStatus is a stub");
|
||||
return 0;
|
||||
}
|
||||
DVDDiskID* DVDGetCurrentDiskID(void) {
|
||||
puts("DVDGetCurrentDiskID is a stub");
|
||||
STUB_LOG("DVDGetCurrentDiskID is a stub");
|
||||
return NULL;
|
||||
}
|
||||
s32 DVDGetDriveStatus(void) {
|
||||
//puts("DVDGetDriveStatus is a stub");
|
||||
//STUB_LOG("DVDGetDriveStatus is a stub");
|
||||
return 0;
|
||||
}
|
||||
void DVDInit(void) {
|
||||
puts("DVDInit is a stub");
|
||||
STUB_LOG("DVDInit is a stub");
|
||||
}
|
||||
BOOL DVDOpen(const char* fileName, DVDFileInfo* fileInfo) {
|
||||
s32 entryNum = DVDConvertPathToEntrynum(fileName);
|
||||
@@ -1401,7 +1403,7 @@ BOOL DVDOpen(const char* fileName, DVDFileInfo* fileInfo) {
|
||||
return DVDFastOpen(entryNum, fileInfo);
|
||||
}
|
||||
int DVDOpenDir(const char* dirName, DVDDir* dir) {
|
||||
puts("DVDOpenDir is a stub");
|
||||
STUB_LOG("DVDOpenDir is a stub");
|
||||
return 0;
|
||||
}
|
||||
BOOL DVDReadAsyncPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset,
|
||||
@@ -1421,7 +1423,7 @@ BOOL DVDReadAsyncPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset,
|
||||
return TRUE;
|
||||
}
|
||||
int DVDReadDir(DVDDir* dir, DVDDirEntry* dirent) {
|
||||
puts("DVDReadDir is a stub");
|
||||
STUB_LOG("DVDReadDir is a stub");
|
||||
return 0;
|
||||
}
|
||||
s32 DVDReadPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, s32 prio) {
|
||||
@@ -1436,22 +1438,22 @@ s32 DVDReadPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, s32 p
|
||||
}
|
||||
|
||||
void DVDReadAbsAsyncForBS(void* a, struct bb2struct* b, int c, int d, void (*e)()) {
|
||||
puts("DVDReadAbsAsyncForBS is a stub");
|
||||
STUB_LOG("DVDReadAbsAsyncForBS is a stub");
|
||||
}
|
||||
|
||||
void DVDReadDiskID(void* a, DVDDiskID* b, void (*c)()) {
|
||||
puts("DVDReadDiskID is a stub");
|
||||
STUB_LOG("DVDReadDiskID is a stub");
|
||||
}
|
||||
|
||||
void DVDReset() {
|
||||
puts("DVDReset is a stub");
|
||||
STUB_LOG("DVDReset is a stub");
|
||||
}
|
||||
|
||||
#pragma mark GD
|
||||
#include <dolphin/gd/GDBase.h>
|
||||
#include <dolphin/gd/GDGeometry.h>
|
||||
void GDFlushCurrToMem(void) {
|
||||
puts("GDFlushCurrToMem is a stub");
|
||||
STUB_LOG("GDFlushCurrToMem is a stub");
|
||||
}
|
||||
void GDInitGDLObj(GDLObj* dl, void* start, u32 length) {
|
||||
ASSERTMSGLINE(40, !((u32)start & 0x1F), "start must be aligned to 32 bytes");
|
||||
@@ -1462,19 +1464,19 @@ void GDInitGDLObj(GDLObj* dl, void* start, u32 length) {
|
||||
dl->length = length;
|
||||
}
|
||||
void GDOverflowed(void) {
|
||||
puts("GDOverflowed is a stub");
|
||||
STUB_LOG("GDOverflowed is a stub");
|
||||
}
|
||||
void GDPadCurr32(void) {
|
||||
puts("GDPadCurr32 is a stub");
|
||||
STUB_LOG("GDPadCurr32 is a stub");
|
||||
}
|
||||
void GDSetArray(GXAttr attr, void* base_ptr, u8 stride) {
|
||||
puts("GDSetArray is a stub");
|
||||
STUB_LOG("GDSetArray is a stub");
|
||||
}
|
||||
void GDSetArrayRaw(GXAttr attr, u32 base_ptr_raw, u8 stride) {
|
||||
puts("GDSetArrayRaw is a stub");
|
||||
STUB_LOG("GDSetArrayRaw is a stub");
|
||||
}
|
||||
void GDSetVtxDescv(const GXVtxDescList* attrPtr) {
|
||||
puts("GDSetVtxDescv is a stub");
|
||||
STUB_LOG("GDSetVtxDescv is a stub");
|
||||
}
|
||||
|
||||
#pragma mark GX
|
||||
@@ -1529,54 +1531,54 @@ void GXMatrixIndex1u8(const u8 x) { aurora::gfx::fifo::write_u8(static_cast<uint
|
||||
|
||||
// Moved-in GX helpers and helpers for metrics/project
|
||||
void __GXSetSUTexSize() {
|
||||
puts("__GXSetSUTexSize is a stub");
|
||||
STUB_LOG("__GXSetSUTexSize is a stub");
|
||||
}
|
||||
// __GXSetVAT, __GXSetVCD, __GXUpdateBPMask: now provided by Aurora's GXManage.cpp (fifo branch)
|
||||
|
||||
void GXSetGPMetric(GXPerf0 perf0, GXPerf1 perf1) {
|
||||
// puts("GXSetGPMetric is a stub");
|
||||
// STUB_LOG("GXSetGPMetric is a stub");
|
||||
}
|
||||
void GXReadGPMetric(u32* cnt0, u32* cnt1) {
|
||||
// puts("GXReadGPMetric is a stub");
|
||||
// STUB_LOG("GXReadGPMetric is a stub");
|
||||
}
|
||||
void GXClearGPMetric(void) {
|
||||
// puts("GXClearGPMetric is a stub");
|
||||
// STUB_LOG("GXClearGPMetric is a stub");
|
||||
}
|
||||
void GXReadMemMetric(u32* cp_req, u32* tc_req, u32* cpu_rd_req, u32* cpu_wr_req, u32* dsp_req,
|
||||
u32* io_req, u32* vi_req, u32* pe_req, u32* rf_req, u32* fi_req) {
|
||||
// puts("GXReadMemMetric is a stub");
|
||||
// STUB_LOG("GXReadMemMetric is a stub");
|
||||
}
|
||||
void GXClearMemMetric(void) {
|
||||
// puts("GXClearMemMetric is a stub");
|
||||
// STUB_LOG("GXClearMemMetric is a stub");
|
||||
}
|
||||
void GXClearVCacheMetric(void) {
|
||||
// puts("GXClearVCacheMetric is a stub");
|
||||
// STUB_LOG("GXClearVCacheMetric is a stub");
|
||||
}
|
||||
void GXReadPixMetric(u32* top_pixels_in, u32* top_pixels_out, u32* bot_pixels_in,
|
||||
u32* bot_pixels_out, u32* clr_pixels_in, u32* copy_clks) {
|
||||
// puts("GXReadPixMetric is a stub");
|
||||
// STUB_LOG("GXReadPixMetric is a stub");
|
||||
}
|
||||
void GXClearPixMetric(void) {
|
||||
// puts("GXClearPixMetric is a stub");
|
||||
// STUB_LOG("GXClearPixMetric is a stub");
|
||||
}
|
||||
void GXSetVCacheMetric(GXVCachePerf attr) {
|
||||
// puts("GXSetVCacheMetric is a stub");
|
||||
// STUB_LOG("GXSetVCacheMetric is a stub");
|
||||
}
|
||||
void GXReadVCacheMetric(u32* check, u32* miss, u32* stall) {
|
||||
// puts("GXReadVCacheMetric is a stub");
|
||||
// STUB_LOG("GXReadVCacheMetric is a stub");
|
||||
}
|
||||
void GXSetDrawSync(u16 token) {
|
||||
// puts("GXSetDrawSync is a stub");
|
||||
// STUB_LOG("GXSetDrawSync is a stub");
|
||||
}
|
||||
GXDrawSyncCallback GXSetDrawSyncCallback(GXDrawSyncCallback cb) {
|
||||
puts("GXSetDrawSyncCallback is a stub");
|
||||
STUB_LOG("GXSetDrawSyncCallback is a stub");
|
||||
return cb;
|
||||
}
|
||||
void GXDrawCylinder(u8 numEdges) {
|
||||
puts("GXDrawCylinder is a stub");
|
||||
STUB_LOG("GXDrawCylinder is a stub");
|
||||
}
|
||||
void GXWaitDrawDone(void) {
|
||||
// puts("GXWaitDrawDone is a stub");
|
||||
// STUB_LOG("GXWaitDrawDone is a stub");
|
||||
}
|
||||
void GXSetTevIndTile(GXTevStageID tev_stage, GXIndTexStageID ind_stage, u16 tilesize_s,
|
||||
u16 tilesize_t, u16 tilespacing_s, u16 tilespacing_t, GXIndTexFormat format,
|
||||
@@ -1585,7 +1587,7 @@ void GXSetTevIndTile(GXTevStageID tev_stage, GXIndTexStageID ind_stage, u16 tile
|
||||
// TODO
|
||||
}
|
||||
void GXResetWriteGatherPipe(void) {
|
||||
// puts("GXResetWriteGatherPipe is a stub");
|
||||
// STUB_LOG("GXResetWriteGatherPipe is a stub");
|
||||
}
|
||||
|
||||
void GXProject(f32 x, f32 y, f32 z, const f32 mtx[3][4], const f32* pm, const f32* vp, f32* sx,
|
||||
@@ -1615,53 +1617,53 @@ void GXProject(f32 x, f32 y, f32 z, const f32 mtx[3][4], const f32* pm, const f3
|
||||
*sz = vp[5] + (wc * (zc * (vp[5] - vp[4])));
|
||||
}
|
||||
void GXAbortFrame(void) {
|
||||
puts("GXAbortFrame is a stub");
|
||||
STUB_LOG("GXAbortFrame is a stub");
|
||||
}
|
||||
// GXEnableTexOffsets: now provided by Aurora's GXGeometry.cpp (fifo branch)
|
||||
OSThread* GXGetCurrentGXThread(void) {
|
||||
puts("GXGetCurrentGXThread is a stub");
|
||||
STUB_LOG("GXGetCurrentGXThread is a stub");
|
||||
return NULL;
|
||||
}
|
||||
void* GXGetFifoBase(const GXFifoObj* fifo) {
|
||||
puts("GXGetFifoBase is a stub");
|
||||
STUB_LOG("GXGetFifoBase is a stub");
|
||||
return NULL;
|
||||
}
|
||||
u32 GXGetFifoSize(const GXFifoObj* fifo) {
|
||||
puts("GXGetFifoSize is a stub");
|
||||
STUB_LOG("GXGetFifoSize is a stub");
|
||||
return 0;
|
||||
}
|
||||
u16 GXGetNumXfbLines(u16 efbHeight, f32 yScale) {
|
||||
puts("GXGetNumXfbLines is a stub");
|
||||
STUB_LOG("GXGetNumXfbLines is a stub");
|
||||
return 0;
|
||||
}
|
||||
void GXGetViewportv(f32* vp) {
|
||||
puts("GXGetViewportv is a stub");
|
||||
STUB_LOG("GXGetViewportv is a stub");
|
||||
}
|
||||
void GXGetScissor(u32* left, u32* top, u32* wd, u32* ht) {
|
||||
puts("GXGetScissor is a stub");
|
||||
STUB_LOG("GXGetScissor is a stub");
|
||||
}
|
||||
u32 GXGetTexObjTlut(const GXTexObj* tex_obj) {
|
||||
puts("GXGetTexObjTlut is a stub");
|
||||
STUB_LOG("GXGetTexObjTlut is a stub");
|
||||
return 0;
|
||||
}
|
||||
f32 GXGetYScaleFactor(u16 efbHeight, u16 xfbHeight) {
|
||||
puts("GXGetYScaleFactor is a stub");
|
||||
STUB_LOG("GXGetYScaleFactor is a stub");
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
void GXInitTexCacheRegion(GXTexRegion* region, u8 is_32b_mipmap, u32 tmem_even,
|
||||
GXTexCacheSize size_even, u32 tmem_odd, GXTexCacheSize size_odd) {
|
||||
puts("GXInitTexCacheRegion is a stub");
|
||||
STUB_LOG("GXInitTexCacheRegion is a stub");
|
||||
}
|
||||
// XXX, this should be some struct?
|
||||
// GXRenderModeObj GXNtsc480IntDf;
|
||||
//GXRenderModeObj GXNtsc480Int;
|
||||
void GXPeekZ(u16 x, u16 y, u32* z) {
|
||||
puts("GXPeekZ is a stub");
|
||||
STUB_LOG("GXPeekZ is a stub");
|
||||
*z = 0;
|
||||
}
|
||||
void GXReadXfRasMetric(u32* xf_wait_in, u32* xf_wait_out, u32* ras_busy, u32* clocks) {
|
||||
puts("GXReadXfRasMetric is a stub");
|
||||
STUB_LOG("GXReadXfRasMetric is a stub");
|
||||
*xf_wait_in = 0;
|
||||
*xf_wait_out = 0;
|
||||
*ras_busy = 0;
|
||||
@@ -1669,104 +1671,104 @@ void GXReadXfRasMetric(u32* xf_wait_in, u32* xf_wait_out, u32* ras_busy, u32* cl
|
||||
}
|
||||
|
||||
void GXSetCopyClamp(GXFBClamp clamp) {
|
||||
puts("GXSetCopyClamp is a stub");
|
||||
STUB_LOG("GXSetCopyClamp is a stub");
|
||||
}
|
||||
OSThread* GXSetCurrentGXThread(void) {
|
||||
puts("GXSetCurrentGXThread is a stub");
|
||||
STUB_LOG("GXSetCurrentGXThread is a stub");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void GXSetMisc(GXMiscToken token, u32 val) {
|
||||
puts("GXSetMisc is a stub");
|
||||
STUB_LOG("GXSetMisc is a stub");
|
||||
}
|
||||
|
||||
void GXSetProjectionv(const f32* ptr) {
|
||||
puts("GXSetProjectionv is a stub");
|
||||
STUB_LOG("GXSetProjectionv is a stub");
|
||||
}
|
||||
void GXSetVtxAttrFmtv(GXVtxFmt vtxfmt, const GXVtxAttrFmtList* list) {
|
||||
puts("GXSetVtxAttrFmtv is a stub");
|
||||
STUB_LOG("GXSetVtxAttrFmtv is a stub");
|
||||
}
|
||||
|
||||
#pragma mark KPAD
|
||||
// is this actually used?
|
||||
extern "C" void KPADDisableDPD(s32) {
|
||||
puts("KPADDisableDPD is a stub");
|
||||
STUB_LOG("KPADDisableDPD is a stub");
|
||||
}
|
||||
extern "C" void KPADEnableDPD(s32) {
|
||||
puts("KPADEnableDPD is a stub");
|
||||
STUB_LOG("KPADEnableDPD is a stub");
|
||||
}
|
||||
|
||||
// LC (consolidated above)
|
||||
void LCDisable(void) {
|
||||
puts("LCDisable is a stub");
|
||||
STUB_LOG("LCDisable is a stub");
|
||||
}
|
||||
void LCQueueWait(__REGISTER u32 len) {
|
||||
puts("LCQueueWait is a stub");
|
||||
STUB_LOG("LCQueueWait is a stub");
|
||||
}
|
||||
u32 LCStoreData(void* destAddr, void* srcAddr, u32 nBytes) {
|
||||
puts("LCStoreData is a stub");
|
||||
STUB_LOG("LCStoreData is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma mark PPC Arch
|
||||
// MSR stuff?
|
||||
void PPCHalt() {
|
||||
puts("PPCHalt is a stub");
|
||||
STUB_LOG("PPCHalt is a stub");
|
||||
}
|
||||
|
||||
extern "C" void PPCSync(void) {
|
||||
// puts("PPCSync is a stub");
|
||||
// STUB_LOG("PPCSync is a stub");
|
||||
}
|
||||
|
||||
u32 PPCMfhid2() {
|
||||
puts("PPCMfhid2 is a stub");
|
||||
STUB_LOG("PPCMfhid2 is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 PPCMfmsr() {
|
||||
puts("PPCMfmsr is a stub");
|
||||
STUB_LOG("PPCMfmsr is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void PPCMtmsr(u32 newMSR) {
|
||||
puts("PPCMtmsr is a stub");
|
||||
STUB_LOG("PPCMtmsr is a stub");
|
||||
}
|
||||
|
||||
#pragma mark WPAD
|
||||
// uh.. this is revolution include not dolphin?
|
||||
typedef void (*WPADExtensionCallback)(s32 chan, s32 devType);
|
||||
extern "C" WPADExtensionCallback WPADSetExtensionCallback(s32 chan, WPADExtensionCallback cb) {
|
||||
puts("WPADSetExtensionCallback is a stub");
|
||||
STUB_LOG("WPADSetExtensionCallback is a stub");
|
||||
return cb;
|
||||
}
|
||||
|
||||
#pragma mark GF
|
||||
#include <dolphin/gf/GFPixel.h>
|
||||
void GFSetZMode(u8 compare_enable, GXCompare func, u8 update_enable) {
|
||||
puts("GFSetZMode is a stub");
|
||||
STUB_LOG("GFSetZMode is a stub");
|
||||
}
|
||||
void GFSetGenMode2(u8 nTexGens, u8 nChans, u8 nTevs, u8 nInds, GXCullMode cm) {
|
||||
puts("GFSetGenMode2 is a stub");
|
||||
STUB_LOG("GFSetGenMode2 is a stub");
|
||||
}
|
||||
void GFSetTevColorS10(GXTevRegID reg, GXColorS10 color) {
|
||||
puts("GFSetTevColorS10 is a stub");
|
||||
STUB_LOG("GFSetTevColorS10 is a stub");
|
||||
}
|
||||
void GFSetBlendModeEtc(GXBlendMode type, GXBlendFactor src_factor, GXBlendFactor dst_factor,
|
||||
GXLogicOp logic_op, u8 color_update_enable, u8 alpha_update_enable,
|
||||
u8 dither_enable) {
|
||||
puts("GFSetBlendModeEtc is a stub");
|
||||
STUB_LOG("GFSetBlendModeEtc is a stub");
|
||||
}
|
||||
void GFSetChanAmbColor(GXChannelID chan, GXColor color) {
|
||||
puts("GFSetChanAmbColor is a stub");
|
||||
STUB_LOG("GFSetChanAmbColor is a stub");
|
||||
}
|
||||
void GFSetFog(GXFogType type, f32 startz, f32 endz, f32 nearz, f32 farz, GXColor color) {
|
||||
puts("GFSetFog is a stub");
|
||||
STUB_LOG("GFSetFog is a stub");
|
||||
}
|
||||
|
||||
#pragma mark DEBUGPAD
|
||||
#include <d/d_debug_pad.h>
|
||||
dDebugPad_c::dDebugPad_c() {
|
||||
puts("constructing debug pad, stubbed?");
|
||||
STUB_LOG("constructing debug pad, stubbed?");
|
||||
}
|
||||
|
||||
#pragma mark f_ap
|
||||
@@ -1776,95 +1778,95 @@ u8 fapGm_HIO_c::mCaptureScreenDivH = 1;
|
||||
#pragma mark dMsgObject
|
||||
#include <d/d_msg_object.h>
|
||||
void dMsgObject_c::setWord(const char* i_word) {
|
||||
puts("dMsgObject_c::setWord is a stub");
|
||||
STUB_LOG("dMsgObject_c::setWord is a stub");
|
||||
}
|
||||
void dMsgObject_c::setSelectWord(int i_no, const char* i_word) {
|
||||
puts("dMsgObject_c::setSelectWord is a stub");
|
||||
STUB_LOG("dMsgObject_c::setSelectWord is a stub");
|
||||
}
|
||||
|
||||
#pragma mark HIO
|
||||
#include <dolphin/hio.h>
|
||||
#include <revolution/hio2.h>
|
||||
BOOL HIO2Close(s32 handle) {
|
||||
puts("HIO2Close is a stub");
|
||||
STUB_LOG("HIO2Close is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIO2EnumDevices(HIO2EnumCallback callback) {
|
||||
puts("HIO2EnumDevices is a stub");
|
||||
STUB_LOG("HIO2EnumDevices is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIO2Init(void) {
|
||||
puts("HIO2Init is a stub");
|
||||
STUB_LOG("HIO2Init is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
s32 HIO2Open(HIO2DeviceType type, HIO2UnkCallback exiCb, HIO2DisconnectCallback disconnectCb) {
|
||||
puts("HIO2Open is a stub");
|
||||
STUB_LOG("HIO2Open is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL HIO2Read(s32 handle, u32 addr, void* buffer, s32 size) {
|
||||
puts("HIO2Read is a stub");
|
||||
STUB_LOG("HIO2Read is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIO2Write(s32 handle, u32 addr, void* buffer, s32 size) {
|
||||
puts("HIO2Write is a stub");
|
||||
STUB_LOG("HIO2Write is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIORead(u32 addr, void* buffer, s32 size) {
|
||||
puts("HIORead is a stub");
|
||||
STUB_LOG("HIORead is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL HIOWrite(u32 addr, void* buffer, s32 size) {
|
||||
puts("HIOWrite is a stub");
|
||||
STUB_LOG("HIOWrite is a stub");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#pragma mark JHICommBuf
|
||||
#include <JSystem/JHostIO/JHIComm.h>
|
||||
void JHICommBufHeader::init() {
|
||||
puts("JHICommBufHeader::init is a stub");
|
||||
STUB_LOG("JHICommBufHeader::init is a stub");
|
||||
}
|
||||
|
||||
int JHICommBufHeader::load() {
|
||||
puts("JHICommBufHeader::load is a stub");
|
||||
STUB_LOG("JHICommBufHeader::load is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int JHICommBufReader::read(void*, int) {
|
||||
puts("JHICommBufReader::read is a stub");
|
||||
STUB_LOG("JHICommBufReader::read is a stub");
|
||||
return 0;
|
||||
}
|
||||
void JHICommBufReader::readEnd() {
|
||||
puts("JHICommBufReader::readEnd is a stub");
|
||||
STUB_LOG("JHICommBufReader::readEnd is a stub");
|
||||
}
|
||||
|
||||
int JHICommBufReader::readBegin() {
|
||||
puts("JHICommBufReader::readBegin is a stub");
|
||||
STUB_LOG("JHICommBufReader::readBegin is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int JHICommBufWriter::writeBegin() {
|
||||
puts("JHICommBufWriter::writeBegin is a stub");
|
||||
STUB_LOG("JHICommBufWriter::writeBegin is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int JHICommBufWriter::write(void*, int) {
|
||||
puts("JHICommBufWriter::write is a stub");
|
||||
STUB_LOG("JHICommBufWriter::write is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void JHICommBufWriter::writeEnd() {
|
||||
puts("JHICommBufWriter::writeEnd is a stub");
|
||||
STUB_LOG("JHICommBufWriter::writeEnd is a stub");
|
||||
}
|
||||
|
||||
u32 JHICommBufReader::Header::getReadableSize() const {
|
||||
puts("JHICommBufReader::Header::getReadableSize is a stub");
|
||||
STUB_LOG("JHICommBufReader::Header::getReadableSize is a stub");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user