c_dylink match

This commit is contained in:
Jasper St. Pierre
2023-10-13 14:21:53 -07:00
parent 9ea03e0768
commit 75ef109e98
5 changed files with 16 additions and 14 deletions
+7 -2
View File
@@ -17,7 +17,7 @@
#include "dolphin/OS/OS.h"
#include "MSL_C/string.h"
DynamicModuleControl * DMC[PROC_COUNT_e];
DynamicModuleControlBase * DMC[PROC_COUNT_e];
bool DMC_initialized = false;
BOOL cDyl_Initialized = false;
mDoDvdThd_callback_c * cDyl_DVD = NULL;
@@ -512,6 +512,11 @@ s32 cDyl_Unlink(s16 i_ProfName) {
return 0;
}
static void dummy(s16 i_ProfName) {
OSReport_Error("cDyl_Link i_ProfName=%d\n", i_ProfName);
OSReport_Error("cDyl_LinkASync: リンクに失敗しました。諦めます\n");
}
/* 80022B58-80022CEC .text cDyl_LinkASync__Fs */
s32 cDyl_LinkASync(s16 i_ProfName) {
JUT_ASSERT(0x101, DMC_initialized);
@@ -525,7 +530,7 @@ s32 cDyl_LinkASync(s16 i_ProfName) {
}
JUT_ASSERT(0x111, i_ProfName < (sizeof(DMC) / sizeof(DMC[0])));
DynamicModuleControl * d = DMC[i_ProfName];
DynamicModuleControlBase * d = DMC[i_ProfName];
if (d != NULL) {
JUT_ASSERT(0x115, cDyl_Initialized);
if (d->load_async()) {
+5 -7
View File
@@ -102,12 +102,10 @@ void mDoGaC_agbCom_c::mDoGaC_Initial(mDoGaC_DataManag_c* param_0, u8 param_1) {
}
field_0x110 = param_0;
if (param_1 != 0) {
for (int i = 0; i < param_1; i++) {
param_0[i].field_0x0 = 0;
param_0[i].field_0x4 = 0;
param_0[i].field_0x5 = 0;
}
for (int i = 0; i < param_1; i++) {
param_0[i].field_0x0 = 0;
param_0[i].field_0x4 = 0;
param_0[i].field_0x5 = 0;
}
field_0x114 = -1;
@@ -508,7 +506,7 @@ void mDoGaC_agbCom_c::mDoGaC_ContextSend() {
void mDoGaC_agbCom_c::mDoGaC_ContextRead() {
u8 sp8[16];
if (!JUTGba::getManager()->resultGetStatus(mDoGaC_getPortNo(), sp8) && sp8[0] == 0x38) {
JUTGba::getManager()->doRead(mDoGaC_getPortNo(), (u8*)&field_0x118, ContextRead, NULL);
JUTGba::getManager()->doRead(mDoGaC_getPortNo(), (u8*)&field_0x118, ContextCheck, NULL);
} else {
field_0x2 = 0;
}