Fixing the mac build (#263)

This commit is contained in:
Ethan Roseman 2021-04-18 11:31:33 +09:00 committed by GitHub
parent a557e4cd96
commit 3976b4d614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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.")