mirror of
https://github.com/zeldaret/ph
synced 2026-09-03 01:54:10 -04:00
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:
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user