ActorRupee 90% (#124)

* Remove `force_data` macro

* Use size_t in `operator new`

* Bump objdiff to v3.0.0-beta.10

* Decompile functions using gRandom

* ActorRupee 90%

* Fix old gRandom.Next calls

* Revert objdiff

* Clean up
This commit is contained in:
Aetias
2025-07-21 19:09:56 +02:00
committed by GitHub
parent 32cc123547
commit aee9c362bb
21 changed files with 103 additions and 68 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "global.h"
#include "types.h"
#include "System/Random.hpp"
extern "C" u32 func_ov009_0211c558(const u8 *param0, s32 param1);
const u8 data_ov009_0211e0fc[80] = {
0x59, 0x5B, 0x60, 0x60, 0x6A, 0x6A, 0x74, 0x58, 0x6A, 0x6A, 0x74, 0x60, 0x60, 0x59, 0x5B, 0x58, 0x60, 0x6A, 0x6A, 0x59,
0x5B, 0x74, 0x60, 0x58, 0x6A, 0x65, 0x60, 0x65, 0x60, 0x65, 0x63, 0x58, 0x65, 0x6A, 0x60, 0x65, 0x65, 0x63, 0x60, 0x58,
0x65, 0x65, 0x6A, 0x60, 0x63, 0x60, 0x65, 0x58, 0x59, 0x6A, 0x6A, 0x65, 0x6A, 0x60, 0x60, 0x58, 0x60, 0x60, 0x6A, 0x6A,
0x65, 0x59, 0x6A, 0x58, 0x6A, 0x59, 0x60, 0x60, 0x6A, 0x6A, 0x65, 0x58, 0x5B, 0x5B, 0x65, 0x6A, 0x6A, 0x65, 0x65, 0x5B,
};
THUMB void func_ov009_0211c808(unk32 *param1) {
*param1 = func_ov009_0211c558(data_ov009_0211e0fc, gRandom.Next(0, 100));
}