From 9d88bb5d3fd78b50eac63d5d0a5ab017617e0983 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Thu, 12 Mar 2026 12:46:40 +0100 Subject: [PATCH] Fix BE in JASAramStream::load --- libs/JSystem/src/JAudio2/JASAramStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/JSystem/src/JAudio2/JASAramStream.cpp b/libs/JSystem/src/JAudio2/JASAramStream.cpp index 159df92739..6cbc523c60 100644 --- a/libs/JSystem/src/JAudio2/JASAramStream.cpp +++ b/libs/JSystem/src/JAudio2/JASAramStream.cpp @@ -324,7 +324,7 @@ bool JASAramStream::load() { (void)i; // Fakematch? It seems the only way to get the bhead->field_0x4 load in the right order is // with a pointer cast on its address in one of the two places it is read, but not both. - if (!JKRMainRamToAram(sReadBuffer + *(u32*)&bhead->mSize * i + sizeof(BlockHeader), + if (!JKRMainRamToAram(sReadBuffer + bhead->mSize * i + sizeof(BlockHeader), sp08 + sBlockSize * mBlocksPerChannel * i, bhead->mSize, EXPAND_SWITCH_UNKNOWN0, 0, NULL, -1, NULL)) { JUT_WARN(522, "%s", "JKRMainRamToAram Failed");