VERY experimental Nintendo Switch 2 emulator
C++
hle: hle_helpers: Skip data payload offset checks on TIPC requests.
bunnei42957785f01f
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.hindex 61bda37865..ceff2532dd 100644--- a/src/core/hle/ipc_helpers.h+++ b/src/core/hle/ipc_helpers.h@@ -345,8 +345,12 @@ public:explicit RequestParser(u32* command_buffer) : RequestHelperBase(command_buffer) {}explicit RequestParser(Kernel::HLERequestContext& ctx) : RequestHelperBase(ctx) {- ASSERT_MSG(ctx.GetDataPayloadOffset(), "context is incomplete");- Skip(ctx.GetDataPayloadOffset(), false);+ // TIPC does not have data payload offset+ if (!ctx.IsTipc()) {+ ASSERT_MSG(ctx.GetDataPayloadOffset(), "context is incomplete");+ Skip(ctx.GetDataPayloadOffset(), false);+ }+// Skip the u64 command id, it's already stored in the contextstatic constexpr u32 CommandIdSize = 2;Skip(CommandIdSize, false);