Clean up code.

This commit is contained in:
koopthekoopa
2024-08-02 17:51:04 +01:00
parent 584cb646ba
commit 759fa799b6
76 changed files with 2463 additions and 752 deletions

View File

@@ -1,26 +1,29 @@
#include "ipl.h"
#include "system/iplSystem.h"
#include <cstring>
namespace ipl {
namespace System {
ArgData smArg;
/*
* @note Address 0x81089008
* @note Size 0x2D8
*/
System::ArgData System::smArg;
/*
@Address 0x81332C24
@Size 0x48
*/
Arg::Arg() {
memset(&smArg, 0, 0x02D8);
OSCreateAlarm(&unkAlarm);
}
/*
@Address 0x81334B10
@Size 0x18
*/
bool isResetAcceptable() {
return smArg.pad1[0x249] == 0;
}
/*
* @note Address 0x81332C24
* @note Size 0x48
*/
System::Arg::Arg() {
memset(&smArg, 0, sizeof(ArgData));
OSCreateAlarm(&mUnkAlarm);
}
/*
* @note Address 0x81334B10
* @note Size 0x18
*/
bool System::isResetAcceptable() {
return !smArg.mCanReset;
}
}