diff --git a/rpcs3/Emu/Cell/Modules/cellAudioOut.cpp b/rpcs3/Emu/Cell/Modules/cellAudioOut.cpp index c97263606f..eec8547c76 100644 --- a/rpcs3/Emu/Cell/Modules/cellAudioOut.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAudioOut.cpp @@ -234,22 +234,26 @@ s32 cellAudioOutSetCopyControl(u32 audioOut, u32 control) s32 cellAudioOutConfigure2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellAudioOutConfigure2()"); + return CELL_OK; } s32 cellAudioOutGetConfiguration2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellAudioOutGetConfiguration2()"); + return CELL_OK; } s32 cellAudioOutRegisterCallback() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellAudioOutRegisterCallback()"); + return CELL_OK; } s32 cellAudioOutUnregisterCallback() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellAudioOutUnregisterCallback()"); + return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/cellDaisy.cpp b/rpcs3/Emu/Cell/Modules/cellDaisy.cpp index e55cca47ff..f68ed1aee8 100644 --- a/rpcs3/Emu/Cell/Modules/cellDaisy.cpp +++ b/rpcs3/Emu/Cell/Modules/cellDaisy.cpp @@ -12,117 +12,134 @@ using AtomicInterlock = volatile struct CellDaisyAtomicInterlock; s32 cellDaisyLFQueue2GetPopPointer(vm::ptr queue, vm::ptr pPointer, u32 isBlocking) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLFQueue2GetPopPointer()"); + return CELL_OK; } s32 cellDaisyLFQueue2CompletePopPointer(vm::ptr queue, s32 pointer, vm::ptr, u32)> fpSendSignal, u32 isQueueFull) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLFQueue2CompletePopPointer()"); + return CELL_OK; } void cellDaisyLFQueue2PushOpen(vm::ptr queue) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLFQueue2PushOpen()"); } s32 cellDaisyLFQueue2PushClose(vm::ptr queue, vm::ptr, u32)> fpSendSignal) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLFQueue2PushClose()"); + return CELL_OK; } void cellDaisyLFQueue2PopOpen(vm::ptr queue) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLFQueue2PopOpen()"); } s32 cellDaisyLFQueue2PopClose(vm::ptr queue, vm::ptr, u32)> fpSendSignal) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLFQueue2PopClose()"); + return CELL_OK; } s32 cellDaisyLFQueue2HasUnfinishedConsumer(vm::ptr queue, u32 isCancelled) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLFQueue2HasUnfinishedConsumer()"); + return CELL_OK; } s32 cellDaisy_snprintf(vm::ptr buffer, u32 count, vm::cptr fmt, ppu_va_args_t fmt_args) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisy_snprintf()"); + return CELL_OK; } s32 cellDaisyLock_initialize(vm::ptr _this, u32 depth) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_initialize()"); + return CELL_OK; } s32 cellDaisyLock_getNextHeadPointer(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_getNextHeadPointer()"); + return CELL_OK; } s32 cellDaisyLock_getNextTailPointer(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_getNextTailPointer()"); + return CELL_OK; } s32 cellDaisyLock_completeConsume(vm::ptr _this, u32 pointer) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_completeConsume()"); + return CELL_OK; } s32 cellDaisyLock_completeProduce(vm::ptr _this, u32 pointer) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_completeProduce()"); + return CELL_OK; } s32 cellDaisyLock_pushOpen(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_pushOpen()"); + return CELL_OK; } s32 cellDaisyLock_pushClose(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_pushClose()"); + return CELL_OK; } s32 cellDaisyLock_popOpen(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_popOpen()"); + return CELL_OK; } s32 cellDaisyLock_popClose(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyLock_popClose()"); + return CELL_OK; } void cellDaisyScatterGatherInterlock_1(vm::ptr _this, vm::ptr ea, u32 size, vm::ptr eaSignal, vm::ptr, u32)> fpSendSignal) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyScatterGatherInterlock_1()"); } void cellDaisyScatterGatherInterlock_2(vm::ptr _this, u32 size, vm::ptr ids, u32 numSpus, u8 spup) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyScatterGatherInterlock_2()"); } void cellDaisyScatterGatherInterlock_9tor(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyScatterGatherInterlock_9tor()"); } s32 cellDaisyScatterGatherInterlock_probe(vm::ptr _this, u32 isBlocking) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyScatterGatherInterlock_probe()"); + return CELL_OK; } s32 cellDaisyScatterGatherInterlock_release(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyScatterGatherInterlock_release()"); + return CELL_OK; } void cellDaisyScatterGatherInterlock_proceedSequenceNumber(vm::ptr _this) { - fmt::throw_exception("Unimplemented" HERE); + cellDaisy.todo("cellDaisyScatterGatherInterlock_proceedSequenceNumber()"); } diff --git a/rpcs3/Emu/Cell/Modules/cellFont.cpp b/rpcs3/Emu/Cell/Modules/cellFont.cpp index 57a138ef07..cdc416df6d 100644 --- a/rpcs3/Emu/Cell/Modules/cellFont.cpp +++ b/rpcs3/Emu/Cell/Modules/cellFont.cpp @@ -577,177 +577,212 @@ s32 cellFontGetCharGlyphMetricsVertical() s32 cellFontGetRenderEffectWeight() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetRenderEffectWeight()"); + return CELL_OK; } s32 cellFontGraphicsGetDrawType() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGraphicsGetDrawType()"); + return CELL_OK; } s32 cellFontGetKerning() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetKerning()"); + return CELL_OK; } s32 cellFontGetRenderScaledKerning() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetRenderScaledKerning()"); + return CELL_OK; } s32 cellFontGetRenderScalePixel() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetRenderScalePixel()"); + return CELL_OK; } s32 cellFontGlyphGetScalePixel() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGlyphGetScalePixel()"); + return CELL_OK; } s32 cellFontGlyphGetHorizontalShift() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGlyphGetHorizontalShift()"); + return CELL_OK; } s32 cellFontRenderCharGlyphImageHorizontal() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontRenderCharGlyphImageHorizontal()"); + return CELL_OK; } s32 cellFontGetEffectWeight() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetEffectWeight()"); + return CELL_OK; } s32 cellFontGetScalePixel() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetScalePixel()"); + return CELL_OK; } s32 cellFontClearFileCache() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontClearFileCache()"); + return CELL_OK; } s32 cellFontAdjustFontScaling() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontAdjustFontScaling()"); + return CELL_OK; } s32 cellFontSetupRenderScalePoint() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontSetupRenderScalePoint()"); + return CELL_OK; } s32 cellFontGlyphGetVerticalShift() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGlyphGetVerticalShift()"); + return CELL_OK; } s32 cellFontGetGlyphExpandBufferInfo() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetGlyphExpandBufferInfo()"); + return CELL_OK; } s32 cellFontGetLibrary() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetLibrary()"); + return CELL_OK; } s32 cellFontVertexesGlyphRelocate() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontVertexesGlyphRelocate()"); + return CELL_OK; } s32 cellFontGetInitializedRevisionFlags() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetInitializedRevisionFlags()"); + return CELL_OK; } s32 cellFontGetResolutionDpi() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetResolutionDpi()"); + return CELL_OK; } s32 cellFontGlyphRenderImageVertical() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGlyphRenderImageVertical()"); + return CELL_OK; } s32 cellFontGlyphRenderImageHorizontal() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGlyphRenderImageHorizontal()"); + return CELL_OK; } s32 cellFontAdjustGlyphExpandBuffer() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontAdjustGlyphExpandBuffer()"); + return CELL_OK; } s32 cellFontGetRenderScalePoint() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetRenderScalePoint()"); + return CELL_OK; } s32 cellFontGraphicsGetFontRGBA() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGraphicsGetFontRGBA()"); + return CELL_OK; } s32 cellFontGlyphGetOutlineVertexes() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGlyphGetOutlineVertexes()"); + return CELL_OK; } s32 cellFontDelete() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontDelete()"); + return CELL_OK; } s32 cellFontPatchWorks() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontPatchWorks()"); + return CELL_OK; } s32 cellFontGlyphRenderImage() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGlyphRenderImage()"); + return CELL_OK; } s32 cellFontGetBindingRenderer() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetBindingRenderer()"); + return CELL_OK; } s32 cellFontGenerateCharGlyphVertical() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGenerateCharGlyphVertical()"); + return CELL_OK; } s32 cellFontGetRenderEffectSlant() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetRenderEffectSlant()"); + return CELL_OK; } s32 cellFontGetScalePoint() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGetScalePoint()"); + return CELL_OK; } s32 cellFontGraphicsGetLineRGBA() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontGraphicsGetLineRGBA()"); + return CELL_OK; } s32 cellFontControl() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontControl()"); + return CELL_OK; } s32 cellFontStatic() { - fmt::throw_exception("Unimplemented" HERE); + cellFont.todo("cellFontStatic()"); + return CELL_OK; } DECLARE(ppu_module_manager::cellFont)("cellFont", []() diff --git a/rpcs3/Emu/Cell/Modules/cellFs.cpp b/rpcs3/Emu/Cell/Modules/cellFs.cpp index cba1bd07dc..e3e5a7f544 100644 --- a/rpcs3/Emu/Cell/Modules/cellFs.cpp +++ b/rpcs3/Emu/Cell/Modules/cellFs.cpp @@ -997,17 +997,20 @@ s32 cellFsAioCancel(s32 id) s32 cellFsArcadeHddSerialNumber() { - fmt::throw_exception("Unimplemented: %s", __func__); + cellFs.todo("cellFsArcadeHddSerialNumber()"); + return CELL_OK; } s32 cellFsRegisterConversionCallback() { - fmt::throw_exception("Unimplemented: %s", __func__); + cellFs.todo("cellFsRegisterConversionCallback()"); + return CELL_OK; } s32 cellFsUnregisterL10nCallbacks() { - fmt::throw_exception("Unimplemented: %s", __func__); + cellFs.todo("cellFsUnregisterL10nCallbacks()"); + return CELL_OK; } DECLARE(ppu_module_manager::cellFs)("sys_fs", []() diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 10009f4ae3..aea2f86aab 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -219,7 +219,8 @@ error_code cellHddGameCheck(ppu_thread& ppu, u32 version, vm::cptr dirName error_code cellHddGameCheck2() { - fmt::throw_exception("Unimplemented" HERE); + cellGame.todo("cellHddGameCheck2()"); + return CELL_OK; } error_code cellHddGameGetSizeKB(vm::ptr size) diff --git a/rpcs3/Emu/Cell/Modules/cellGcmSys.cpp b/rpcs3/Emu/Cell/Modules/cellGcmSys.cpp index 6d2320bb32..27aa9c16f1 100644 --- a/rpcs3/Emu/Cell/Modules/cellGcmSys.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGcmSys.cpp @@ -831,7 +831,8 @@ s32 cellGcmGetVBlankCount2() s32 cellGcmSysGetLastVBlankTime() { - fmt::throw_exception("Unimplemented" HERE); + cellGcmSys.todo("cellGcmSysGetLastVBlankTime()"); + return CELL_OK; } s32 cellGcmInitSystemMode(u64 mode) @@ -1307,27 +1308,32 @@ s32 cellGcmSetTile(u8 index, u8 location, u32 offset, u32 size, u32 pitch, u8 co s32 _cellGcmFunc2() { - fmt::throw_exception("Unimplemented" HERE); + cellGcmSys.todo("_cellGcmFunc2()"); + return CELL_OK; } s32 _cellGcmFunc3() { - fmt::throw_exception("Unimplemented" HERE); + cellGcmSys.todo("_cellGcmFunc3()"); + return CELL_OK; } s32 _cellGcmFunc4() { - fmt::throw_exception("Unimplemented" HERE); + cellGcmSys.todo("_cellGcmFunc4()"); + return CELL_OK; } s32 _cellGcmFunc13() { - fmt::throw_exception("Unimplemented" HERE); + cellGcmSys.todo("_cellGcmFunc13()"); + return CELL_OK; } s32 _cellGcmFunc38() { - fmt::throw_exception("Unimplemented" HERE); + cellGcmSys.todo("_cellGcmFunc38()"); + return CELL_OK; } s32 cellGcmGpadGetStatus(vm::ptr status) diff --git a/rpcs3/Emu/Cell/Modules/cellGifDec.cpp b/rpcs3/Emu/Cell/Modules/cellGifDec.cpp index 4a660e71b9..010a643548 100644 --- a/rpcs3/Emu/Cell/Modules/cellGifDec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGifDec.cpp @@ -75,7 +75,8 @@ s32 cellGifDecOpen(PMainHandle mainHandle, PPSubHandle subHandle, PSrc src, POpe s32 cellGifDecExtOpen() { - fmt::throw_exception("Unimplemented" HERE); + cellGifDec.todo("cellGifDecExtOpen()"); + return CELL_OK; } s32 cellGifDecReadHeader(PMainHandle mainHandle, PSubHandle subHandle, PInfo info) @@ -127,7 +128,8 @@ s32 cellGifDecReadHeader(PMainHandle mainHandle, PSubHandle subHandle, PInfo inf s32 cellGifDecExtReadHeader() { - fmt::throw_exception("Unimplemented" HERE); + cellGifDec.todo("cellGifDecExtReadHeader()"); + return CELL_OK; } s32 cellGifDecSetParameter(PMainHandle mainHandle, PSubHandle subHandle, PInParam inParam, POutParam outParam) @@ -157,7 +159,8 @@ s32 cellGifDecSetParameter(PMainHandle mainHandle, PSubHandle subHandle, PInPara s32 cellGifDecExtSetParameter() { - fmt::throw_exception("Unimplemented" HERE); + cellGifDec.todo("cellGifDecExtSetParameter()"); + return CELL_OK; } s32 cellGifDecDecodeData(PMainHandle mainHandle, PSubHandle subHandle, vm::ptr data, PDataCtrlParam dataCtrlParam, PDataOutInfo dataOutInfo) @@ -276,7 +279,8 @@ s32 cellGifDecDecodeData(PMainHandle mainHandle, PSubHandle subHandle, vm::ptr subHandle, vm::ptr s32 cellJpgDecExtReadHeader() { - fmt::throw_exception("Unimplemented" HERE); + cellJpgDec.todo("cellJpgDecExtReadHeader()"); + return CELL_OK; } s32 cellJpgDecDecodeData(u32 mainHandle, u32 subHandle, vm::ptr data, vm::cptr dataCtrlParam, vm::ptr dataOutInfo) @@ -299,7 +301,8 @@ s32 cellJpgDecDecodeData(u32 mainHandle, u32 subHandle, vm::ptr data, vm::cp s32 cellJpgDecExtDecodeData() { - fmt::throw_exception("Unimplemented" HERE); + cellJpgDec.todo("cellJpgDecExtDecodeData()"); + return CELL_OK; } s32 cellJpgDecSetParameter(u32 mainHandle, u32 subHandle, vm::cptr inParam, vm::ptr outParam) @@ -349,7 +352,8 @@ s32 cellJpgDecSetParameter(u32 mainHandle, u32 subHandle, vm::cptr src, vm::cptr src_len, vm::ptr dst, vm::ptr dst_len) @@ -1213,7 +1214,8 @@ s32 BIG5stoUTF8s(vm::cptr src, vm::cptr src_len, vm::ptr dst, vm::p s32 EUCCNtoUCS2() { - fmt::throw_exception("Unimplemented" HERE); + cellL10n.todo("EUCCNtoUCS2()"); + return CELL_OK; } s32 UTF8stoSBCSs() diff --git a/rpcs3/Emu/Cell/Modules/cellPngDec.cpp b/rpcs3/Emu/Cell/Modules/cellPngDec.cpp index d0a782a850..7f9e235f51 100644 --- a/rpcs3/Emu/Cell/Modules/cellPngDec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellPngDec.cpp @@ -913,87 +913,104 @@ s32 cellPngDecExtDecodeData(ppu_thread& ppu, PHandle handle, PStream stream, vm: s32 cellPngDecGetUnknownChunks(PHandle handle, PStream stream, vm::pptr unknownChunk, vm::ptr unknownChunkNumber) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetUnknownChunks()"); + return CELL_OK; } s32 cellPngDecGetpCAL(PHandle handle, PStream stream, vm::ptr pcal) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetpCAL()"); + return CELL_OK; } s32 cellPngDecGetcHRM(PHandle handle, PStream stream, vm::ptr chrm) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetcHRM()"); + return CELL_OK; } s32 cellPngDecGetsCAL(PHandle handle, PStream stream, vm::ptr scal) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetsCAL()"); + return CELL_OK; } s32 cellPngDecGetpHYs(PHandle handle, PStream stream, vm::ptr phys) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetpHYs()"); + return CELL_OK; } s32 cellPngDecGetoFFs(PHandle handle, PStream stream, vm::ptr offs) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetoFFs()"); + return CELL_OK; } s32 cellPngDecGetsPLT(PHandle handle, PStream stream, vm::ptr splt) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetsPLT()"); + return CELL_OK; } s32 cellPngDecGetbKGD(PHandle handle, PStream stream, vm::ptr bkgd) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetbKGD()"); + return CELL_OK; } s32 cellPngDecGettIME(PHandle handle, PStream stream, vm::ptr time) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGettIME()"); + return CELL_OK; } s32 cellPngDecGethIST(PHandle handle, PStream stream, vm::ptr hist) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGethIST()"); + return CELL_OK; } s32 cellPngDecGettRNS(PHandle handle, PStream stream, vm::ptr trns) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGettRNS()"); + return CELL_OK; } s32 cellPngDecGetsBIT(PHandle handle, PStream stream, vm::ptr sbit) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetsBIT()"); + return CELL_OK; } s32 cellPngDecGetiCCP(PHandle handle, PStream stream, vm::ptr iccp) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetiCCP()"); + return CELL_OK; } s32 cellPngDecGetsRGB(PHandle handle, PStream stream, vm::ptr srgb) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetsRGB()"); + return CELL_OK; } s32 cellPngDecGetgAMA(PHandle handle, PStream stream, vm::ptr gama) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetgAMA()"); + return CELL_OK; } s32 cellPngDecGetPLTE(PHandle handle, PStream stream, vm::ptr plte) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetPLTE()"); + return CELL_OK; } s32 cellPngDecGetTextChunk(PHandle handle, PStream stream, vm::ptr textInfoNum, vm::pptr textInfo) { - fmt::throw_exception("Unimplemented" HERE); + cellPngDec.todo("cellPngDecGetTextChunk()"); + return CELL_OK; } DECLARE(ppu_module_manager::cellPngDec)("cellPngDec", []() diff --git a/rpcs3/Emu/Cell/Modules/cellRemotePlay.cpp b/rpcs3/Emu/Cell/Modules/cellRemotePlay.cpp index d07aef0868..deb40b6f8d 100644 --- a/rpcs3/Emu/Cell/Modules/cellRemotePlay.cpp +++ b/rpcs3/Emu/Cell/Modules/cellRemotePlay.cpp @@ -5,42 +5,50 @@ LOG_CHANNEL(cellRemotePlay); s32 cellRemotePlayGetStatus() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlayGetStatus()"); + return CELL_OK; } s32 cellRemotePlaySetComparativeVolume() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlaySetComparativeVolume()"); + return CELL_OK; } s32 cellRemotePlayGetPeerInfo() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlayGetPeerInfo()"); + return CELL_OK; } s32 cellRemotePlayGetSharedMemory() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlayGetSharedMemory()"); + return CELL_OK; } s32 cellRemotePlayEncryptAllData() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlayEncryptAllData()"); + return CELL_OK; } s32 cellRemotePlayStopPeerVideoOut() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlayStopPeerVideoOut()"); + return CELL_OK; } s32 cellRemotePlayGetComparativeVolume() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlayGetComparativeVolume()"); + return CELL_OK; } s32 cellRemotePlayBreak() { - fmt::throw_exception("Unimplemented" HERE); + cellRemotePlay.todo("cellRemotePlayBreak()"); + return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/cellSync.cpp b/rpcs3/Emu/Cell/Modules/cellSync.cpp index df3c040642..a8ac3ef506 100644 --- a/rpcs3/Emu/Cell/Modules/cellSync.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSync.cpp @@ -974,7 +974,7 @@ error_code _cellSyncLFQueueGetPushPointer2(ppu_thread& ppu, vm::ptr queue, s32 pointer, vm::ptr fpSendSignal) @@ -1115,7 +1115,7 @@ error_code _cellSyncLFQueueCompletePushPointer2(ppu_thread& ppu, vm::ptr queue, vm::cptr buffer, u32 isBlocking) @@ -1273,7 +1273,7 @@ error_code _cellSyncLFQueueGetPopPointer2(ppu_thread& ppu, vm::ptr queue, s32 pointer, vm::ptr fpSendSignal, u32 noQueueFull) @@ -1414,7 +1414,7 @@ error_code _cellSyncLFQueueCompletePopPointer2(ppu_thread& ppu, vm::ptr queue, vm::ptr buffer, u32 isBlocking) @@ -1646,14 +1646,14 @@ error_code _cellSyncLFQueueAttachLv2EventQueue(vm::ptr spus, u32 num, vm::p { cellSync.todo("_cellSyncLFQueueAttachLv2EventQueue(spus=*0x%x, num=%d, queue=*0x%x)", spus, num, queue); - fmt::throw_exception("Unimplemented" HERE); + return CELL_OK; } error_code _cellSyncLFQueueDetachLv2EventQueue(vm::ptr spus, u32 num, vm::ptr queue) { cellSync.todo("_cellSyncLFQueueDetachLv2EventQueue(spus=*0x%x, num=%d, queue=*0x%x)", spus, num, queue); - fmt::throw_exception("Unimplemented" HERE); + return CELL_OK; } DECLARE(ppu_module_manager::cellSync)("cellSync", []() diff --git a/rpcs3/Emu/Cell/Modules/cellSysutil.cpp b/rpcs3/Emu/Cell/Modules/cellSysutil.cpp index adae744a18..a69aac0ef7 100644 --- a/rpcs3/Emu/Cell/Modules/cellSysutil.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSysutil.cpp @@ -432,72 +432,86 @@ s32 cellSysutilSetBgmPlaybackExtraParam() s32 cellSysutilRegisterCallbackDispatcher() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilRegisterCallbackDispatcher()"); + return CELL_OK; } s32 cellSysutilUnregisterCallbackDispatcher() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilUnregisterCallbackDispatcher()"); + return CELL_OK; } s32 cellSysutilPacketRead() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilPacketRead()"); + return CELL_OK; } s32 cellSysutilPacketWrite() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilPacketWrite()"); + return CELL_OK; } s32 cellSysutilPacketBegin() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilPacketBegin()"); + return CELL_OK; } s32 cellSysutilPacketEnd() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilPacketEnd()"); + return CELL_OK; } s32 cellSysutilGameDataAssignVmc() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilGameDataAssignVmc()"); + return CELL_OK; } s32 cellSysutilGameDataExit() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilGameDataExit()"); + return CELL_OK; } s32 cellSysutilGameExit_I() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilGameExit_I()"); + return CELL_OK; } s32 cellSysutilGamePowerOff_I() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilGamePowerOff_I()"); + return CELL_OK; } s32 cellSysutilGameReboot_I() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilGameReboot_I()"); + return CELL_OK; } s32 cellSysutilSharedMemoryAlloc() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilSharedMemoryAlloc()"); + return CELL_OK; } s32 cellSysutilSharedMemoryFree() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilSharedMemoryFree()"); + return CELL_OK; } s32 cellSysutilNotification() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilNotification()"); + return CELL_OK; } s32 _ZN4cxml7Element11AppendChildERS0_() diff --git a/rpcs3/Emu/Cell/Modules/cellSysutilAvc.cpp b/rpcs3/Emu/Cell/Modules/cellSysutilAvc.cpp index 21406a65fb..acfe2479a0 100644 --- a/rpcs3/Emu/Cell/Modules/cellSysutilAvc.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSysutilAvc.cpp @@ -1,104 +1,126 @@ #include "stdafx.h" #include "Emu/Cell/PPUModule.h" +extern logs::channel cellSysutil; + s32 cellSysutilAvcByeRequest() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcByeRequest()"); + return CELL_OK; } s32 cellSysutilAvcCancelByeRequest() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcCancelByeRequest()"); + return CELL_OK; } s32 cellSysutilAvcCancelJoinRequest() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcCancelJoinRequest()"); + return CELL_OK; } s32 cellSysutilAvcEnumPlayers() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcEnumPlayers()"); + return CELL_OK; } s32 cellSysutilAvcGetAttribute() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcGetAttribute()"); + return CELL_OK; } s32 cellSysutilAvcGetLayoutMode() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcGetLayoutMode()"); + return CELL_OK; } s32 cellSysutilAvcGetShowStatus() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcGetShowStatus()"); + return CELL_OK; } s32 cellSysutilAvcGetSpeakerVolumeLevel() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcGetSpeakerVolumeLevel()"); + return CELL_OK; } s32 cellSysutilAvcGetVideoMuting() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcGetVideoMuting()"); + return CELL_OK; } s32 cellSysutilAvcGetVoiceMuting() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcGetVoiceMuting()"); + return CELL_OK; } s32 cellSysutilAvcHidePanel() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcHidePanel()"); + return CELL_OK; } s32 cellSysutilAvcJoinRequest() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcJoinRequest()"); + return CELL_OK; } s32 cellSysutilAvcLoadAsync() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcLoadAsync()"); + return CELL_OK; } s32 cellSysutilAvcSetAttribute() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcSetAttribute()"); + return CELL_OK; } s32 cellSysutilAvcSetLayoutMode() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcSetLayoutMode()"); + return CELL_OK; } s32 cellSysutilAvcSetSpeakerVolumeLevel() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcSetSpeakerVolumeLevel()"); + return CELL_OK; } s32 cellSysutilAvcSetVideoMuting() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcSetVideoMuting()"); + return CELL_OK; } s32 cellSysutilAvcSetVoiceMuting() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcSetVoiceMuting()"); + return CELL_OK; } s32 cellSysutilAvcShowPanel() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcShowPanel()"); + return CELL_OK; } s32 cellSysutilAvcUnloadAsync() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellSysutilAvcUnloadAsync()"); + return CELL_OK; } void cellSysutil_SysutilAvc_init() diff --git a/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp b/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp index ef6d830f67..47cc42272a 100644 --- a/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp @@ -265,32 +265,38 @@ error_code cellVideoOutGetResolutionAvailability(u32 videoOut, u32 resolutionId, s32 cellVideoOutConfigure2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellVideoOutConfigure2()"); + return CELL_OK; } s32 cellVideoOutGetResolutionAvailability2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellVideoOutGetResolutionAvailability2()"); + return CELL_OK; } s32 cellVideoOutGetConvertCursorColorInfo(vm::ptr rgbOutputRange) { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellVideoOutGetConvertCursorColorInfo()"); + return CELL_OK; } s32 cellVideoOutDebugSetMonitorType(u32 videoOut, u32 monitorType) { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellVideoOutDebugSetMonitorType()"); + return CELL_OK; } s32 cellVideoOutRegisterCallback(u32 slot, vm::ptr function, vm::ptr userData) { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellVideoOutRegisterCallback()"); + return CELL_OK; } s32 cellVideoOutUnregisterCallback(u32 slot) { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellVideoOutUnregisterCallback()"); + return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/cellWebBrowser.cpp b/rpcs3/Emu/Cell/Modules/cellWebBrowser.cpp index b1be0be813..06b88e96c6 100644 --- a/rpcs3/Emu/Cell/Modules/cellWebBrowser.cpp +++ b/rpcs3/Emu/Cell/Modules/cellWebBrowser.cpp @@ -14,12 +14,14 @@ struct browser_info s32 cellWebBrowserActivate() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserActivate()"); + return CELL_OK; } s32 cellWebBrowserConfig() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfig()"); + return CELL_OK; } error_code cellWebBrowserConfig2(vm::cptr config, u32 version) @@ -30,27 +32,32 @@ error_code cellWebBrowserConfig2(vm::cptr config, u32 ver s32 cellWebBrowserConfigGetHeapSize() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigGetHeapSize()"); + return CELL_OK; } s32 cellWebBrowserConfigGetHeapSize2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigGetHeapSize2()"); + return CELL_OK; } s32 cellWebBrowserConfigSetCustomExit() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetCustomExit()"); + return CELL_OK; } s32 cellWebBrowserConfigSetDisableTabs() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetDisableTabs()"); + return CELL_OK; } s32 cellWebBrowserConfigSetErrorHook2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetErrorHook2()"); + return CELL_OK; } error_code cellWebBrowserConfigSetFullScreen2(vm::cptr config, u32 full) @@ -61,12 +68,14 @@ error_code cellWebBrowserConfigSetFullScreen2(vm::cptr co s32 cellWebBrowserConfigSetFullVersion2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetFullVersion2()"); + return CELL_OK; } s32 cellWebBrowserConfigSetFunction() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetFunction()"); + return CELL_OK; } error_code cellWebBrowserConfigSetFunction2(vm::ptr config, u32 funcset) @@ -77,7 +86,8 @@ error_code cellWebBrowserConfigSetFunction2(vm::ptr confi s32 cellWebBrowserConfigSetHeapSize() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetHeapSize()"); + return CELL_OK; } error_code cellWebBrowserConfigSetHeapSize2(vm::ptr config, u32 size) @@ -88,7 +98,8 @@ error_code cellWebBrowserConfigSetHeapSize2(vm::ptr confi s32 cellWebBrowserConfigSetMimeSet() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetMimeSet()"); + return CELL_OK; } error_code cellWebBrowserConfigSetNotifyHook2(vm::cptr config, vm::ptr cb, vm::ptr userdata) @@ -99,12 +110,14 @@ error_code cellWebBrowserConfigSetNotifyHook2(vm::cptr co s32 cellWebBrowserConfigSetRequestHook2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetRequestHook2()"); + return CELL_OK; } s32 cellWebBrowserConfigSetStatusHook2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetStatusHook2()"); + return CELL_OK; } error_code cellWebBrowserConfigSetTabCount2(vm::cptr config, u32 tab_count) @@ -121,7 +134,8 @@ error_code cellWebBrowserConfigSetUnknownMIMETypeHook2(vm::cptr config, u32 cond) @@ -132,67 +146,80 @@ error_code cellWebBrowserConfigSetViewCondition2(vm::ptr s32 cellWebBrowserConfigSetViewRect2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigSetViewRect2()"); + return CELL_OK; } s32 cellWebBrowserConfigWithVer() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserConfigWithVer()"); + return CELL_OK; } s32 cellWebBrowserCreate() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserCreate()"); + return CELL_OK; } s32 cellWebBrowserCreate2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserCreate2()"); + return CELL_OK; } s32 cellWebBrowserCreateRender2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserCreateRender2()"); + return CELL_OK; } s32 cellWebBrowserCreateRenderWithRect2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserCreateRenderWithRect2()"); + return CELL_OK; } s32 cellWebBrowserCreateWithConfig() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserCreateWithConfig()"); + return CELL_OK; } s32 cellWebBrowserCreateWithConfigFull() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserCreateWithConfigFull()"); + return CELL_OK; } s32 cellWebBrowserCreateWithRect2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserCreateWithRect2()"); + return CELL_OK; } s32 cellWebBrowserDeactivate() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserDeactivate()"); + return CELL_OK; } s32 cellWebBrowserDestroy() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserDestroy()"); + return CELL_OK; } s32 cellWebBrowserDestroy2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserDestroy2()"); + return CELL_OK; } s32 cellWebBrowserEstimate() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserEstimate()"); + return CELL_OK; } error_code cellWebBrowserEstimate2(vm::cptr config, vm::ptr memSize) @@ -229,17 +256,20 @@ error_code cellWebBrowserInitialize(vm::ptr system s32 cellWebBrowserNavigate2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserNavigate2()"); + return CELL_OK; } s32 cellWebBrowserSetLocalContentsAdditionalTitleID() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserSetLocalContentsAdditionalTitleID()"); + return CELL_OK; } s32 cellWebBrowserSetSystemCallbackUsrdata() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserSetSystemCallbackUsrdata()"); + return CELL_OK; } void cellWebBrowserShutdown() @@ -257,27 +287,32 @@ void cellWebBrowserShutdown() s32 cellWebBrowserUpdatePointerDisplayPos2() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserUpdatePointerDisplayPos2()"); + return CELL_OK; } s32 cellWebBrowserWakeupWithGameExit() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebBrowserWakeupWithGameExit()"); + return CELL_OK; } s32 cellWebComponentCreate() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebComponentCreate()"); + return CELL_OK; } s32 cellWebComponentCreateAsync() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebComponentCreateAsync()"); + return CELL_OK; } s32 cellWebComponentDestroy() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutil.todo("cellWebComponentDestroy()"); + return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/libsnd3.cpp b/rpcs3/Emu/Cell/Modules/libsnd3.cpp index 769f2cde9c..6521f57fa0 100644 --- a/rpcs3/Emu/Cell/Modules/libsnd3.cpp +++ b/rpcs3/Emu/Cell/Modules/libsnd3.cpp @@ -19,12 +19,14 @@ s32 cellSnd3Exit() u16 cellSnd3Note2Pitch(u16 center_note, u16 center_fine, u16 note, s16 fine) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3Note2Pitch()"); + return 0; } u16 cellSnd3Pitch2Note(u16 center_note, u16 center_fine, u16 pitch) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3Pitch2Note()"); + return 0; } s32 cellSnd3SetOutputMode(u32 mode) @@ -59,22 +61,26 @@ s32 cellSnd3UnbindSoundData(u32 hd3ID) s32 cellSnd3NoteOnByTone(u32 hd3ID, u32 toneIndex, u32 note, u32 keyOnID, vm::ptr keyOnParam) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3NoteOnByTone()"); + return CELL_OK; } s32 cellSnd3KeyOnByTone(u32 hd3ID, u32 toneIndex, u32 pitch, u32 keyOnID, vm::ptr keyOnParam) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3KeyOnByTone()"); + return CELL_OK; } s32 cellSnd3VoiceNoteOnByTone(u32 hd3ID, u32 voiceNum, u32 toneIndex, u32 note, u32 keyOnID, vm::ptr keyOnParam) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3VoiceNoteOnByTone()"); + return CELL_OK; } s32 cellSnd3VoiceKeyOnByTone(u32 hd3ID, u32 voiceNum, u32 toneIndex, u32 pitch, u32 keyOnID, vm::ptr keyOnParam) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3VoiceKeyOnByTone()"); + return CELL_OK; } s32 cellSnd3VoiceSetReserveMode(u32 voiceNum, u32 reserveMode) @@ -139,7 +145,8 @@ s32 cellSnd3VoiceGetEnvelope(u32 voiceNum) s32 cellSnd3VoiceGetStatus(u32 voiceNum) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3VoiceGetStatus()"); + return CELL_OK; } u32 cellSnd3KeyOffByID(u32 keyOnID) @@ -186,12 +193,14 @@ s32 cellSnd3SetEffectType(u16 effectType, s16 returnVol, u16 delay, u16 feedback s32 cellSnd3SMFBind(vm::ptr smfCtx, vm::ptr smf, u32 hd3ID) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFBind()"); + return CELL_OK; } s32 cellSnd3SMFUnbind(u32 smfID) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFUnbind()"); + return CELL_OK; } s32 cellSnd3SMFPlay(u32 smfID, u32 playVelocity, u32 playPan, u32 playCount) @@ -232,7 +241,8 @@ s32 cellSnd3SMFAddTempo(u32 smfID, s32 addTempo) s32 cellSnd3SMFGetTempo(u32 smfID) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFGetTempo()"); + return CELL_OK; } s32 cellSnd3SMFSetPlayVelocity(u32 smfID, u32 playVelocity) @@ -243,7 +253,8 @@ s32 cellSnd3SMFSetPlayVelocity(u32 smfID, u32 playVelocity) s32 cellSnd3SMFGetPlayVelocity(u32 smfID) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFGetPlayVelocity()"); + return CELL_OK; } s32 cellSnd3SMFSetPlayPanpot(u32 smfID, u32 playPanpot) @@ -260,17 +271,20 @@ s32 cellSnd3SMFSetPlayPanpotEx(u32 smfID, u32 playPanpotEx) s32 cellSnd3SMFGetPlayPanpot(u32 smfID) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFGetPlayPanpot()"); + return CELL_OK; } s32 cellSnd3SMFGetPlayPanpotEx(u32 smfID) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFGetPlayPanpotEx()"); + return CELL_OK; } s32 cellSnd3SMFGetPlayStatus(u32 smfID) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFGetPlayStatus()"); + return CELL_OK; } s32 cellSnd3SMFSetPlayChannel(u32 smfID, u32 playChannelBit) @@ -281,7 +295,8 @@ s32 cellSnd3SMFSetPlayChannel(u32 smfID, u32 playChannelBit) s32 cellSnd3SMFGetPlayChannel(u32 smfID, vm::ptr playChannelBit) { - fmt::throw_exception("Unimplemented" HERE); + libsnd3.todo("cellSnd3SMFGetPlayChannel()"); + return CELL_OK; } s32 cellSnd3SMFGetKeyOnID(u32 smfID, u32 midiChannel, vm::ptr keyOnID) diff --git a/rpcs3/Emu/Cell/Modules/libsynth2.cpp b/rpcs3/Emu/Cell/Modules/libsynth2.cpp index 9c518d00d6..bfaae44fae 100644 --- a/rpcs3/Emu/Cell/Modules/libsynth2.cpp +++ b/rpcs3/Emu/Cell/Modules/libsynth2.cpp @@ -33,7 +33,7 @@ void cellSoundSynth2SetParam(u16 reg, u16 value) u16 cellSoundSynth2GetParam(u16 reg) { libsynth2.todo("cellSoundSynth2GetParam(register=0x%x)", reg); - fmt::throw_exception("Unimplemented" HERE); + return 0; } void cellSoundSynth2SetSwitch(u16 reg, u32 value) @@ -44,7 +44,7 @@ void cellSoundSynth2SetSwitch(u16 reg, u32 value) u32 cellSoundSynth2GetSwitch(u16 reg) { libsynth2.todo("cellSoundSynth2GetSwitch(register=0x%x)", reg); - fmt::throw_exception("Unimplemented" HERE); + return 0; } s32 cellSoundSynth2SetAddr(u16 reg, u32 value) @@ -56,7 +56,7 @@ s32 cellSoundSynth2SetAddr(u16 reg, u32 value) u32 cellSoundSynth2GetAddr(u16 reg) { libsynth2.todo("cellSoundSynth2GetAddr(register=0x%x)", reg); - fmt::throw_exception("Unimplemented" HERE); + return 0; } s32 cellSoundSynth2SetEffectAttr(s16 bus, vm::ptr attr) @@ -97,13 +97,13 @@ s32 cellSoundSynth2VoiceTransStatus(s16 channel, s16 flag) u16 cellSoundSynth2Note2Pitch(u16 center_note, u16 center_fine, u16 note, s16 fine) { libsynth2.todo("cellSoundSynth2Note2Pitch(center_note=0x%x, center_fine=0x%x, note=0x%x, fine=%d)", center_note, center_fine, note, fine); - fmt::throw_exception("Unimplemented" HERE); + return 0; } u16 cellSoundSynth2Pitch2Note(u16 center_note, u16 center_fine, u16 pitch) { libsynth2.todo("cellSoundSynth2Pitch2Note(center_note=0x%x, center_fine=0x%x, pitch=0x%x)", center_note, center_fine, pitch); - fmt::throw_exception("Unimplemented" HERE); + return 0; } diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index af72e076d0..1ff47d968c 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -1933,47 +1933,56 @@ s32 _sceNpSysutilClientFree() s32 _Z33_sce_np_sysutil_send_empty_packetiPN16sysutil_cxmlutil11FixedMemoryEPKcS3_() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z33_sce_np_sysutil_send_empty_packetiPN16sysutil_cxmlutil11FixedMemoryEPKcS3_()"); + return CELL_OK; } s32 _Z27_sce_np_sysutil_send_packetiRN4cxml8DocumentE() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z27_sce_np_sysutil_send_packetiRN4cxml8DocumentE()"); + return CELL_OK; } s32 _Z36_sce_np_sysutil_recv_packet_fixedmemiPN16sysutil_cxmlutil11FixedMemoryERN4cxml8DocumentERNS2_7ElementE() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z36_sce_np_sysutil_recv_packet_fixedmemiPN16sysutil_cxmlutil11FixedMemoryERN4cxml8DocumentERNS2_7ElementE()"); + return CELL_OK; } s32 _Z40_sce_np_sysutil_recv_packet_fixedmem_subiPN16sysutil_cxmlutil11FixedMemoryERN4cxml8DocumentERNS2_7ElementE() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z40_sce_np_sysutil_recv_packet_fixedmem_subiPN16sysutil_cxmlutil11FixedMemoryERN4cxml8DocumentERNS2_7ElementE()"); + return CELL_OK; } s32 _Z27_sce_np_sysutil_recv_packetiRN4cxml8DocumentERNS_7ElementE() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z27_sce_np_sysutil_recv_packetiRN4cxml8DocumentERNS_7ElementE()"); + return CELL_OK; } s32 _Z29_sce_np_sysutil_cxml_set_npidRN4cxml8DocumentERNS_7ElementEPKcPK7SceNpId() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z29_sce_np_sysutil_cxml_set_npidRN4cxml8DocumentERNS_7ElementEPKcPK7SceNpId()"); + return CELL_OK; } s32 _Z31_sce_np_sysutil_send_packet_subiRN4cxml8DocumentE() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z31_sce_np_sysutil_send_packet_subiRN4cxml8DocumentE()"); + return CELL_OK; } s32 _Z37sce_np_matching_set_matching2_runningb() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z37sce_np_matching_set_matching2_runningb()"); + return CELL_OK; } s32 _Z32_sce_np_sysutil_cxml_prepare_docPN16sysutil_cxmlutil11FixedMemoryERN4cxml8DocumentEPKcRNS2_7ElementES6_i() { - fmt::throw_exception("Unimplemented" HERE); + sceNp.todo("_Z32_sce_np_sysutil_cxml_prepare_docPN16sysutil_cxmlutil11FixedMemoryERN4cxml8DocumentEPKcRNS2_7ElementES6_i()"); + return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp b/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp index 1dbb2feb06..f070047182 100644 --- a/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp @@ -45,17 +45,20 @@ s32 sceNpCommerce2DestroyCtx() s32 sceNpCommerce2EmptyStoreCheckStart() { - fmt::throw_exception("Unimplemented" HERE); + sceNpCommerce2.todo("sceNpCommerce2EmptyStoreCheckStart()"); + return CELL_OK; } s32 sceNpCommerce2EmptyStoreCheckAbort() { - fmt::throw_exception("Unimplemented" HERE); + sceNpCommerce2.todo("sceNpCommerce2EmptyStoreCheckAbort()"); + return CELL_OK; } s32 sceNpCommerce2EmptyStoreCheckFinish() { - fmt::throw_exception("Unimplemented" HERE); + sceNpCommerce2.todo("sceNpCommerce2EmptyStoreCheckFinish()"); + return CELL_OK; } s32 sceNpCommerce2CreateSessionStart() @@ -306,12 +309,14 @@ s32 sceNpCommerce2DestroyReq() s32 sceNpCommerce2DoServiceListStartAsync() { - fmt::throw_exception("Unimplemented" HERE); + sceNpCommerce2.todo("sceNpCommerce2DoServiceListStartAsync()"); + return CELL_OK; } s32 sceNpCommerce2DoServiceListFinishAsync() { - fmt::throw_exception("Unimplemented" HERE); + sceNpCommerce2.todo("sceNpCommerce2DoServiceListFinishAsync()"); + return CELL_OK; } DECLARE(ppu_module_manager::sceNpCommerce2)("sceNpCommerce2", []() diff --git a/rpcs3/Emu/Cell/Modules/sysPrxForUser.cpp b/rpcs3/Emu/Cell/Modules/sysPrxForUser.cpp index c12ec6e4dc..a436253568 100644 --- a/rpcs3/Emu/Cell/Modules/sysPrxForUser.cpp +++ b/rpcs3/Emu/Cell/Modules/sysPrxForUser.cpp @@ -93,7 +93,8 @@ s32 sys_get_random_number(vm::ptr addr, u64 size) s32 console_getc() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("console_getc()"); + return CELL_OK; } void console_putc(char ch) diff --git a/rpcs3/Emu/Cell/Modules/sys_game.cpp b/rpcs3/Emu/Cell/Modules/sys_game.cpp index 76f41e3e05..83e9c927f7 100644 --- a/rpcs3/Emu/Cell/Modules/sys_game.cpp +++ b/rpcs3/Emu/Cell/Modules/sys_game.cpp @@ -24,7 +24,7 @@ static u32 get_string_array_size(vm::cpptr list, u32& out_count) result += (((u32)std::strlen(str.get_ptr()) + 0x10) & -0x10) + 8; continue; } - break; + break; } return result; @@ -43,7 +43,7 @@ static u32 get_exitspawn_size(vm::cptr path, vm::cpptr argv, vm::cpp { result += 8; } - + return result; } @@ -134,7 +134,7 @@ static void exitspawn(ppu_thread& ppu, vm::cptr path, vm::cpptr argv } // TODO (process atexit) - return _sys_process_exit2(ppu, 0, arg, alloc_size, 0x10000000); + return _sys_process_exit2(ppu, 0, arg, alloc_size, 0x10000000); } void sys_game_process_exitspawn(ppu_thread& ppu, vm::cptr path, vm::cpptr argv, vm::cpptr envp, u32 data, u32 data_size, s32 prio, u64 flags) @@ -153,42 +153,50 @@ void sys_game_process_exitspawn2(ppu_thread& ppu, vm::cptr path, vm::cpptr s32 sys_game_board_storage_read() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_board_storage_read()"); + return CELL_OK; } s32 sys_game_board_storage_write() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_board_storage_write()"); + return CELL_OK; } s32 sys_game_get_rtc_status() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_get_rtc_status()"); + return CELL_OK; } s32 sys_game_get_system_sw_version() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_get_system_sw_version()"); + return CELL_OK; } s32 sys_game_get_temperature() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_get_temperature()"); + return CELL_OK; } s32 sys_game_watchdog_clear() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_watchdog_clear()"); + return CELL_OK; } s32 sys_game_watchdog_start() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_watchdog_start()"); + return CELL_OK; } s32 sys_game_watchdog_stop() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("sys_game_watchdog_stop()"); + return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/sys_heap.cpp b/rpcs3/Emu/Cell/Modules/sys_heap.cpp index 624aa0f95c..add605b126 100644 --- a/rpcs3/Emu/Cell/Modules/sys_heap.cpp +++ b/rpcs3/Emu/Cell/Modules/sys_heap.cpp @@ -62,22 +62,26 @@ s32 _sys_heap_free(u32 heap, u32 addr) s32 _sys_heap_alloc_heap_memory() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("_sys_heap_alloc_heap_memory()"); + return CELL_OK; } s32 _sys_heap_get_mallinfo() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("_sys_heap_get_mallinfo()"); + return CELL_OK; } s32 _sys_heap_get_total_free_size() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("_sys_heap_get_total_free_size()"); + return CELL_OK; } s32 _sys_heap_stats() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("_sys_heap_stats()"); + return CELL_OK; } void sysPrxForUser_sys_heap_init() diff --git a/rpcs3/Emu/Cell/Modules/sys_io.cpp b/rpcs3/Emu/Cell/Modules/sys_io.cpp index 0ffde3687b..acf9f19af8 100644 --- a/rpcs3/Emu/Cell/Modules/sys_io.cpp +++ b/rpcs3/Emu/Cell/Modules/sys_io.cpp @@ -10,42 +10,50 @@ extern void cellMouse_init(); s32 sys_config_start() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_start()"); + return CELL_OK; } s32 sys_config_stop() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_stop()"); + return CELL_OK; } s32 sys_config_add_service_listener() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_add_service_listener()"); + return CELL_OK; } s32 sys_config_remove_service_listener() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_remove_service_listener()"); + return CELL_OK; } s32 sys_config_register_io_error_handler() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_register_io_error_handler()"); + return CELL_OK; } s32 sys_config_register_service() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_register_service()"); + return CELL_OK; } s32 sys_config_unregister_io_error_handler() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_unregister_io_error_handler()"); + return CELL_OK; } s32 sys_config_unregister_service() { - fmt::throw_exception("Unimplemented" HERE); + sys_io.todo("sys_config_unregister_service()"); + return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/sys_libc_.cpp b/rpcs3/Emu/Cell/Modules/sys_libc_.cpp index 8249367a2d..a9e3c59782 100644 --- a/rpcs3/Emu/Cell/Modules/sys_libc_.cpp +++ b/rpcs3/Emu/Cell/Modules/sys_libc_.cpp @@ -436,17 +436,20 @@ s32 _sys_sprintf(ppu_thread& ppu, vm::ptr buffer, vm::cptr fmt, ppu_ s32 _sys_vprintf() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("_sys_vprintf()"); + return CELL_OK; } s32 _sys_vsnprintf() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("_sys_vsnprintf()"); + return CELL_OK; } s32 _sys_vsprintf() { - fmt::throw_exception("Unimplemented" HERE); + sysPrxForUser.todo("_sys_vsprintf()"); + return CELL_OK; } void _sys_qsort(vm::ptr base, u32 nelem, u32 size, vm::ptr cmp) diff --git a/rpcs3/Emu/Cell/Modules/sys_lv2dbg.cpp b/rpcs3/Emu/Cell/Modules/sys_lv2dbg.cpp index 853228fe7d..7adca0e695 100644 --- a/rpcs3/Emu/Cell/Modules/sys_lv2dbg.cpp +++ b/rpcs3/Emu/Cell/Modules/sys_lv2dbg.cpp @@ -69,184 +69,219 @@ void fmt_class_string::format(std::string& out, u64 arg) s32 sys_dbg_read_ppu_thread_context(u64 id, vm::ptr ppu_context) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_read_ppu_thread_context()"); + return CELL_OK; } s32 sys_dbg_read_spu_thread_context(u32 id, vm::ptr spu_context) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_read_spu_thread_context()"); + return CELL_OK; } s32 sys_dbg_read_spu_thread_context2(u32 id, vm::ptr spu_context) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_read_spu_thread_context2()"); + return CELL_OK; } s32 sys_dbg_set_stacksize_ppu_exception_handler(u32 stacksize) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_set_stacksize_ppu_exception_handler()"); + return CELL_OK; } s32 sys_dbg_initialize_ppu_exception_handler(s32 prio) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_initialize_ppu_exception_handler()"); + return CELL_OK; } s32 sys_dbg_finalize_ppu_exception_handler() { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_finalize_ppu_exception_handler()"); + return CELL_OK; } s32 sys_dbg_register_ppu_exception_handler(vm::ptr callback, u64 ctrl_flags) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_register_ppu_exception_handler()"); + return CELL_OK; } s32 sys_dbg_unregister_ppu_exception_handler() { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_unregister_ppu_exception_handler()"); + return CELL_OK; } s32 sys_dbg_signal_to_ppu_exception_handler(u64 flags) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_signal_to_ppu_exception_handler()"); + return CELL_OK; } s32 sys_dbg_get_mutex_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_mutex_information()"); + return CELL_OK; } s32 sys_dbg_get_cond_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_cond_information()"); + return CELL_OK; } s32 sys_dbg_get_rwlock_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_rwlock_information()"); + return CELL_OK; } s32 sys_dbg_get_event_queue_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_event_queue_information()"); + return CELL_OK; } s32 sys_dbg_get_semaphore_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_semaphore_information()"); + return CELL_OK; } s32 sys_dbg_get_lwmutex_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_lwmutex_information()"); + return CELL_OK; } s32 sys_dbg_get_lwcond_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_lwcond_information()"); + return CELL_OK; } s32 sys_dbg_get_event_flag_information(u32 id, vm::ptr info) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_event_flag_information()"); + return CELL_OK; } s32 sys_dbg_get_ppu_thread_ids(vm::ptr ids, vm::ptr ids_num, vm::ptr all_ids_num) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_ppu_thread_ids()"); + return CELL_OK; } s32 sys_dbg_get_spu_thread_group_ids(vm::ptr ids, vm::ptr ids_num, vm::ptr all_ids_num) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_spu_thread_group_ids()"); + return CELL_OK; } s32 sys_dbg_get_spu_thread_ids(u32 group_id, vm::ptr ids, vm::ptr ids_num, vm::ptr all_ids_num) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_spu_thread_ids()"); + return CELL_OK; } s32 sys_dbg_get_ppu_thread_name(u64 id, vm::ptr name) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_ppu_thread_name()"); + return CELL_OK; } s32 sys_dbg_get_spu_thread_name(u32 id, vm::ptr name) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_spu_thread_name()"); + return CELL_OK; } s32 sys_dbg_get_spu_thread_group_name(u32 id, vm::ptr name) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_spu_thread_group_name()"); + return CELL_OK; } s32 sys_dbg_get_ppu_thread_status(u64 id, vm::ptr status) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_ppu_thread_status()"); + return CELL_OK; } s32 sys_dbg_get_spu_thread_group_status(u32 id, vm::ptr status) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_spu_thread_group_status()"); + return CELL_OK; } s32 sys_dbg_enable_floating_point_enabled_exception(u64 id, u64 flags, u64 opt1, u64 opt2) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_enable_floating_point_enabled_exception()"); + return CELL_OK; } s32 sys_dbg_disable_floating_point_enabled_exception(u64 id, u64 flags, u64 opt1, u64 opt2) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_disable_floating_point_enabled_exception()"); + return CELL_OK; } s32 sys_dbg_vm_get_page_information(u32 addr, u32 num, vm::ptr pageinfo) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_vm_get_page_information()"); + return CELL_OK; } s32 sys_dbg_set_address_to_dabr(u64 addr, u64 ctrl_flag) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_set_address_to_dabr()"); + return CELL_OK; } s32 sys_dbg_get_address_from_dabr(vm::ptr addr, vm::ptr ctrl_flag) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_address_from_dabr()"); + return CELL_OK; } s32 sys_dbg_signal_to_coredump_handler(u64 data1, u64 data2, u64 data3) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_signal_to_coredump_handler()"); + return CELL_OK; } s32 sys_dbg_mat_set_condition(u32 addr, u64 cond) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_mat_set_condition()"); + return CELL_OK; } s32 sys_dbg_mat_get_condition(u32 addr, vm::ptr condp) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_mat_get_condition()"); + return CELL_OK; } s32 sys_dbg_get_coredump_params(vm::ptr param) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_get_coredump_params()"); + return CELL_OK; } s32 sys_dbg_set_mask_to_ppu_exception_handler(u64 mask, u64 flags) { - fmt::throw_exception("Unimplemented" HERE); + sys_lv2dbg.todo("sys_dbg_set_mask_to_ppu_exception_handler()"); + return CELL_OK; } DECLARE(ppu_module_manager::sys_lv2dbg)("sys_lv2dbg", []