Compare commits

..

1 Commits

Author SHA1 Message Date
coah
f8dca58c09 cleanup: rename AOSSThread SO alloc/free callbacks
Rename AOSSThread_813FCC8C/E4 to aossAlloc/aossFree. DOL sha1 unchanged.
2026-10-01 16:56:02 -05:00
6 changed files with 27 additions and 28 deletions

View File

@@ -53,7 +53,7 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.37% | 87.69% | 61.81% | 91.28% |
| 99.37% | 87.69% | 61.81% | 91.27% |
units 916/1027 complete, functions 12211/12563 matched.

View File

@@ -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
@@ -23191,7 +23191,7 @@ _repeatBitLength__7LibTVRC = .sbss:0x81698768; // type:object size:0x4 data:4byt
_repeatBitArray__7LibTVRC = .sbss:0x8169876C; // type:object size:0x4 data:4byte
_tickT__7LibTVRC = .sbss:0x81698770; // type:object size:0x4 data:4byte
m_handle__Q23ipl11TVRCManager = .sbss:0x81698778; // type:object size:0x4 data:4byte
sTvrcStartDelay__3ipl = .sbss:0x8169877C; // type:object size:0x4 data:4byte
lbl_8169877C__3ipl = .sbss:0x8169877C; // type:object size:0x4 data:4byte
suIDCounter__Q23gui11PaneManager = .sbss:0x81698780; // type:object size:0x4 data:4byte
_bgmBlk__Q23ipl3snd = .sbss:0x81698788; // type:object size:0x4
_mainBGMHandle__Q23ipl3snd = .sbss:0x8169878C; // type:object size:0x4 data:4byte

View File

@@ -5,6 +5,8 @@
#include "keyboard/tiHKBManager.h"
#include "keyboard/tiLayoutGather.h"
extern const u8 lbl_81616BD8[] = {0x0f, 0x21, 0x20, 0x08, 0x09, 0x0e, 0x19, 0x00, 0x21, 0x21, 0x00, 0x00};
extern const u8 lbl_81616BE4[] = {0x0f, 0x21, 0x20, 0x04, 0x09, 0x0e, 0x11, 0x00, 0x21, 0x21, 0x00, 0x00};
extern "C" void SetCountry__Q39textinput5input10HKBManagerFUc();
extern "C" textinput::input::HKBManager sInstance__Q39textinput5input10HKBManager;
extern "C" void convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw();
@@ -526,9 +528,6 @@ extern const u8 controlKeys[];
return false;
}
extern "C" const u8 lbl_81616BD8[] = {0x0f, 0x21, 0x20, 0x08, 0x09, 0x0e, 0x19, 0x00, 0x21, 0x21, 0x00, 0x00};
extern "C" const u8 lbl_81616BE4[] = {0x0f, 0x21, 0x20, 0x04, 0x09, 0x0e, 0x11, 0x00, 0x21, 0x21, 0x00, 0x00};
const u8 controlKeys[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x01, 0x0a, 0x03,
0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,

View File

@@ -621,28 +621,28 @@ namespace ipl {
void BoardObject::set_thumb_text(const char* paneName, const wchar_t* thumbText) {
nw4r::lyt::TextBox* textBox = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(mpLayout->FindPaneByName(paneName));
wchar_t truncatedThumb[THUMB_TEXT_LENGTH + 3 /* "..." */ + 1 /* NULL */] = L"";
memset(truncatedThumb, 0, sizeof(truncatedThumb));
wchar_t local_28[THUMB_TEXT_LENGTH + 3 /* "..." */ + 1 /* NULL */] = L"";
memset(local_28, 0, sizeof(local_28));
if (thumbText != NULL) {
for (int i = 0; i < THUMB_TEXT_LENGTH + 1 && thumbText[i] != (u16)'\n'; i++) {
truncatedThumb[i] = thumbText[i];
local_28[i] = thumbText[i];
}
}
if (System::getRegion() == SC_PRODUCT_AREA_JPN) {
if (truncatedThumb[THUMB_TEXT_LENGTH] != 0) {
truncatedThumb[THUMB_TEXT_LENGTH + 0] = L'…';
if (local_28[THUMB_TEXT_LENGTH] != 0) {
local_28[THUMB_TEXT_LENGTH + 0] = L'…';
}
} else {
if (truncatedThumb[THUMB_TEXT_LENGTH] != 0) {
truncatedThumb[THUMB_TEXT_LENGTH + 2] = '.';
truncatedThumb[THUMB_TEXT_LENGTH + 1] = '.';
truncatedThumb[THUMB_TEXT_LENGTH + 0] = '.';
if (local_28[THUMB_TEXT_LENGTH] != 0) {
local_28[THUMB_TEXT_LENGTH + 2] = '.';
local_28[THUMB_TEXT_LENGTH + 1] = '.';
local_28[THUMB_TEXT_LENGTH + 0] = '.';
}
}
textBox->SetString(truncatedThumb);
textBox->SetString(local_28);
}
void BoardObject::update(int chan) {

View File

@@ -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;
}

View File

@@ -21,7 +21,7 @@
namespace ipl {
TVRCManager* TVRCManager::m_handle;
int sTvrcStartDelay = 0;
int lbl_8169877C = 0;
TVRCManager::TVRCManager(EGG::Heap* heap) : mbInitialized(FALSE), mpDBFile(NULL), mbResetting(FALSE), mbPrepTVRC(FALSE), mState(STATE_0) {
/* TV model for testing at EAD? */
@@ -280,17 +280,17 @@ namespace ipl {
case STATE_3: {
if (!snd::getSystem()->isSEActive(HOMESE_GOTO_MENU)) {
snd::getSystem()->pauseOnBGM();
sTvrcStartDelay = 5;
lbl_8169877C = 5;
mState = STATE_4;
}
break;
}
case STATE_4: {
if (mbResetting) {
sTvrcStartDelay = 0;
lbl_8169877C = 0;
}
if (--sTvrcStartDelay <= 0 && !snd::getSystem()->isSEActive(HOMESE_GOTO_MENU)) {
if (--lbl_8169877C <= 0 && !snd::getSystem()->isSEActive(HOMESE_GOTO_MENU)) {
snd_shutup(TRUE);
if (IS_ENABLED && !TVRCIsActive()) {
TVRCSendStartAsync(trans_cmd(mCurrentCommand));