mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
Fixing the mac build (#263)
This commit is contained in:
parent
a557e4cd96
commit
3976b4d614
@ -7,5 +7,6 @@ const char* ascii_EC2018 = "flo_25";
|
||||
const char* ascii_EC2020 = "flo_16";
|
||||
const char* ascii_EC2028 = "flo_09";
|
||||
const char* ascii_EC2030 = "flo_08";
|
||||
static const f64 rodata_alignment = 0.0;
|
||||
|
||||
INCLUDE_ASM(s32, "EB8E50", func_80240000_EB8E50);
|
||||
|
@ -176,7 +176,7 @@ ApiStatus N(func_802401AC_BECF9C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
case 2:
|
||||
ptr->unk_04 = ptr->unk_24 + (2.0f * (sin_deg(ptr->unk_4C) + 1.0f));
|
||||
ptr->unk_4C = clamp_angle(ptr->unk_4C + 8);
|
||||
if (!(dist3D(playerStatus->position.x, playerStatus->position.y + 20.0f, playerStatus->position.z,
|
||||
if (!(dist3D(playerStatus->position.x, playerStatus->position.y + 20.0f, playerStatus->position.z,
|
||||
ptr->unk_00, ptr->unk_04, ptr->unk_08) > 30.0f)) {
|
||||
ptr->unk_4E = 3;
|
||||
}
|
||||
@ -232,7 +232,7 @@ ApiStatus N(func_80240708_BED4F8)(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
ptr->unk_04 = ptr->unk_24 + (2.0f * (sin_deg(ptr->unk_4C) + 1.0f));
|
||||
ptr->unk_4C = clamp_angle(ptr->unk_4C + 8);
|
||||
if (dist2D(playerStatus->position.x, playerStatus->position.z,
|
||||
if (dist2D(playerStatus->position.x, playerStatus->position.z,
|
||||
ptr->unk_18, ptr->unk_20) <= 30.0f) {
|
||||
ptr->unk_4E = 3;
|
||||
}
|
||||
@ -398,6 +398,8 @@ Script N(exitWalk_80242978) = EXIT_WALK_SCRIPT(60, 1, "arn_03", 0);
|
||||
|
||||
Script N(exitWalk_802429D4) = EXIT_WALK_SCRIPT(60, 2, "mim_12", 1);
|
||||
|
||||
static const f64 rodata_alignment = 0.0;
|
||||
|
||||
Script N(80242A30) = SCRIPT({
|
||||
DisablePlayerInput(TRUE);
|
||||
DisablePartnerAI(0);
|
||||
|
@ -420,7 +420,7 @@ if __name__ == "__main__":
|
||||
exec_shell(["make", "-C", str(ROOT / args.splat)])
|
||||
|
||||
# on macOS, /usr/bin/cpp defaults to clang rather than gcc (but we need gcc's)
|
||||
if args.cpp is None and sys.platform == "darwin" and "Free Software Foundation" not in exec_shell("cpp --version"):
|
||||
if args.cpp is None and sys.platform == "darwin" and "Free Software Foundation" not in exec_shell(["cpp", "--version"]):
|
||||
print("error: system C preprocessor is not GNU!")
|
||||
print("This is a known issue on macOS - only clang's cpp is installed by default.")
|
||||
print("Use 'brew' to obtain GNU cpp, then run this script again with the --cpp option, e.g.")
|
||||
|
Loading…
Reference in New Issue
Block a user