diff options
| author | Aetias <144526980+AetiasHax@users.noreply.github.com> | 2025-07-21 19:09:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-21 19:09:56 +0200 |
| commit | aee9c362bbeb9ae717f4b93cbbd5fa0dd9a71450 (patch) | |
| tree | 76d68901c25694abd6e3b7f90821e36229accf32 /src/09_Adventure | |
| parent | 32cc123547fef2ff4aa170ef27ee0a825957a859 (diff) | |
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
Diffstat (limited to 'src/09_Adventure')
| -rw-r--r-- | src/09_Adventure/func_ov009_0211c808.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/09_Adventure/func_ov009_0211c808.cpp b/src/09_Adventure/func_ov009_0211c808.cpp new file mode 100644 index 00000000..3c67b770 --- /dev/null +++ b/src/09_Adventure/func_ov009_0211c808.cpp @@ -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)); +} |
