From da6afabf60311f493df3d80e9ea35cdd985fcd88 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Wed, 23 Oct 2024 20:38:37 +0200 Subject: [PATCH] [XAM] XMP: Adjusted/Fixed size returned in message 0x0007002E --- src/xenia/kernel/xam/apps/xmp_app.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xam/apps/xmp_app.cc b/src/xenia/kernel/xam/apps/xmp_app.cc index db39b024d..8a4913c1f 100644 --- a/src/xenia/kernel/xam/apps/xmp_app.cc +++ b/src/xenia/kernel/xam/apps/xmp_app.cc @@ -497,7 +497,7 @@ X_HRESULT XmpApp::DispatchMessageSync(uint32_t message, uint32_t buffer_ptr, args->xmp_client == 0x00000000); // We don't use the storage, so just fudge the number. xe::store_and_swap(memory_->TranslateVirtual(args->size_ptr), - 4 + uint32_t(args->song_count) * 128); + args->song_count * 0x3E8 + 0x88); return X_E_SUCCESS; } case 0x0007002F: {