MCPcopy Create free account
hub / github.com/cemu-project/Cemu / _debugVerifyCommand

Function _debugVerifyCommand

src/Cafe/OS/libs/coreinit/coreinit_FS.cpp:818–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816 return fsError;
817
818 void _debugVerifyCommand(const char* stage, FSCmdBlockBody* fsCmdBlockBody)
819 {
820 if (fsCmdBlockBody->asyncResult.msgUnion.fsMsg.commandType != _swapEndianU32(8))
821 {
822 cemuLog_log(LogType::Force, "Corrupted FS command detected in stage {}", stage);
823 cemuLog_log(LogType::Force, "Printing CMD block: ");
824 for (uint32 i = 0; i < (sizeof(FSCmdBlockBody) + 31) / 32; i++)
825 {
826 uint8* p = ((uint8*)fsCmdBlockBody) + i * 32;
827 cemuLog_log(LogType::Force, "{:04x}: {:02x} {:02x} {:02x} {:02x} - {:02x} {:02x} {:02x} {:02x} - {:02x} {:02x} {:02x} {:02x} - {:02x} {:02x} {:02x} {:02x} | {:02x} {:02x} {:02x} {:02x} - {:02x} {:02x} {:02x} {:02x} - {:02x} {:02x} {:02x} {:02x} - {:02x} {:02x} {:02x} {:02x}",
828 i * 32,
829 p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15],
830 p[16], p[17], p[18], p[19], p[20], p[21], p[22], p[23], p[24], p[25], p[26], p[27], p[28], p[29], p[30], p[31]);
831 }
832 }
833 }
834
835 FSAsyncResult* FSGetAsyncResult(OSMessage* msg)
836 {

Callers 2

__FSCmdSubmitResultFunction · 0.85
__FSProcessAsyncResultFunction · 0.85

Calls 2

_swapEndianU32Function · 0.85
cemuLog_logFunction · 0.50

Tested by

no test coverage detected