From f8dca58c09c2afcf9e195e2d6e8c15538f0b12e5 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 16:56:02 -0500 Subject: [PATCH] cleanup: rename AOSSThread SO alloc/free callbacks Rename AOSSThread_813FCC8C/E4 to aossAlloc/aossFree. DOL sha1 unchanged. --- config/43U/symbols.txt | 4 ++-- src/scene/setting/iplAOSSThread.cpp | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index c4e3262d..6abbc8fe 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -5126,8 +5126,8 @@ __ct__Q33ipl5scene10AOSSThreadFPQ23EGG4Heap = .text:0x813FCA0C; // type:function destroy__Q33ipl5scene10AOSSThreadFi = .text:0x813FCAA0; // type:function size:0x84 __dt__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB24; // type:function size:0x70 start__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB94; // type:function size:0xF8 -AOSSThread_813FCC8C__Q33ipl5scene10AOSSThreadFv = .text:0x813FCC8C; // type:function size:0x58 -AOSSThread_813FCCE4__Q33ipl5scene10AOSSThreadFv = .text:0x813FCCE4; // type:function size:0x50 +aossAlloc__Q33ipl5scene10AOSSThreadFv = .text:0x813FCC8C; // type:function size:0x58 +aossFree__Q33ipl5scene10AOSSThreadFv = .text:0x813FCCE4; // type:function size:0x50 Run__Q33ipl5scene10AOSSThreadFv = .text:0x813FCD34; // type:function size:0xEC cancel__Q33ipl5scene10AOSSThreadFv = .text:0x813FCE20; // type:function size:0x50 finish__Q33ipl5scene10AOSSThreadFP13NCDAossConfigPi = .text:0x813FCE70; // type:function size:0x2FC diff --git a/src/scene/setting/iplAOSSThread.cpp b/src/scene/setting/iplAOSSThread.cpp index 82c89b11..66175428 100644 --- a/src/scene/setting/iplAOSSThread.cpp +++ b/src/scene/setting/iplAOSSThread.cpp @@ -78,8 +78,8 @@ namespace ipl { int finish(NCDAossConfig* config, int* result); void printInfo(); - static void* AOSSThread_813FCC8C(u32 id, s32 size); - static void AOSSThread_813FCCE4(u32 id, void* ptr, s32 align); + static void* aossAlloc(u32 id, s32 size); + static void aossFree(u32 id, void* ptr, s32 align); private: s32 mState; // 0x32C @@ -122,8 +122,8 @@ namespace ipl { return 0; } - config.alloc = AOSSThread_813FCC8C; - config.free = AOSSThread_813FCCE4; + config.alloc = aossAlloc; + config.free = aossFree; BOOL level = OSDisableInterrupts(); @@ -144,7 +144,7 @@ namespace ipl { return 1; } - void* AOSSThread::AOSSThread_813FCC8C(u32 id, s32 size) { + void* AOSSThread::aossAlloc(u32 id, s32 size) { void* buffer; BOOL level = OSDisableInterrupts(); buffer = MEMAllocFromAllocator(&m_allocator, size); @@ -152,7 +152,7 @@ namespace ipl { return buffer; } - void AOSSThread::AOSSThread_813FCCE4(u32 id, void* ptr, s32 align) { + void AOSSThread::aossFree(u32 id, void* ptr, s32 align) { BOOL level = OSDisableInterrupts(); MEMFreeToAllocator(&m_allocator, ptr); OSRestoreInterrupts(level); @@ -162,7 +162,7 @@ namespace ipl { mState = 0xF; AOSS_SetCallback(USBAPThread::callback); - if (AOSSi_InitLocal(AOSSThread_813FCC8C, AOSSThread_813FCCE4) == -1) { + if (AOSSi_InitLocal(aossAlloc, aossFree) == -1) { return this; } -- 2.49.1