Files
st/src/000_Second/UnkSystem1_Base.cpp
T
Yanis 8d759ee331 Decompile overlay 1 (Part 7) (#106)
* run ninja format

* delink what's left from overlay 1 (except dsprotect)

* fix regressions

* UnkStruct_027e0ce0_1C_001 97%

* UnkStruct_0204a110_001 OK

* UnkStruct_ov024_020d86a0_001 OK

* UnkStruct_ov000_020b50c0_001 OK

* GameModeCreate OK

* AdventureModeManager_001 OK

* GameModeAdventure_001 OK

* AdventureModeManager_001 OKn't because weak issues

* ZeldaCollisionBinary OK

* UnkStruct_027e09c0_001 OK

* UnkStruct_ov000_020b504c_001 OK

* UnkStruct_ov000_02067bc4.hpp -> UnkStruct_ov000_020b504c.hpp

* match overlay 97

* match overlay 100

* run ninja format
2026-07-13 18:41:32 +02:00

69 lines
1.4 KiB
C++

#include "Unknown/UnkStruct_ov000_020b504c.hpp"
#include "Unknown/UnkSystem1.hpp"
UnkSystem1_ov000_Base::UnkSystem1_ov000_Base(unk32 param1) {
this->mUnk_04 = 0;
this->mUnk_06 = -1;
this->mUnk_08 = param1;
}
void UnkSystem1_ov000_Base::vfunc_00(unk32 param1) {
this->mUnk_08 = param1;
this->mUnk_04 = 0;
this->mUnk_06 = -1;
}
void UnkSystem1_ov000_Base::vfunc_04() {}
bool UnkSystem1_ov000_Base::func_ov000_020669b4(u8 *param1) {
u16 unk_06 = this->mUnk_06;
if (unk_06 <= 0xFF) {
*param1 = unk_06;
return true;
}
return false;
}
void UnkSystem1_ov000_Base::vfunc_08(unk32 param1) {}
unk32 UnkSystem1_ov000_Base::vfunc_0C() {
return 0;
}
void UnkSystem1_ov000_Base::vfunc_18() {}
void UnkSystem1_ov000_Base::func_ov000_020669dc() {
this->vfunc_18();
this->mUnk_06 = -1;
this->mUnk_08 = -1;
}
unk32 UnkSystem1_ov000_Base::func_ov000_02066a08(UnkStruct5 *param1) {
if (this->mUnk_04 == 0) {
this->vfunc_08((param1->mUnk_01 << 16) | param1->mUnk_02);
this->mUnk_04++;
} else {
return this->vfunc_0C();
}
return 0;
}
unk32 UnkSystem1_ov000_Base::vfunc_10(u16 *param1) {
return -1;
}
bool UnkSystem1_ov000_Base::vfunc_14(FLW1Instr *param1) {
return true;
}
unk32 UnkSystem1_ov000_Base::vfunc_1C(u32 param1, unk32 param2, unk32 param3) {
return 1;
}
unk32 UnkSystem1_ov000_Base::vfunc_20(unk32 param1, unk32 param2, unk32 param3) {
return -1;
}