mirror of https://github.com/pmret/papermario.git
flags
This commit is contained in:
parent
75e553d3f6
commit
2cc1a64fe4
|
|
@ -49,7 +49,7 @@ OBJCOPY = $(CROSS)objcopy
|
|||
|
||||
CPPFLAGS = -Iinclude -D _LANGUAGE_C
|
||||
ASFLAGS = -EB -march=vr4300 -mtune=vr4300
|
||||
CFLAGS = -O2 -quiet -G 0
|
||||
CFLAGS = -O2 -quiet -G 0 -mcpu=vr4300 -mfix4300
|
||||
LDFLAGS = -T undefined_syms.txt -T $(LD_SCRIPT) -Map $(BUILD_DIR)/papermario.map --no-check-sections
|
||||
|
||||
######################## Targets #############################
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ void __attribute__((naked)) DemoJoystickRadial(void) {
|
|||
".include \"asm/code_fe0b0_len_5a0/DemoJoystickRadial.s\"\n"
|
||||
);
|
||||
}
|
||||
/*s32 DemoJoysticRadial(ScriptContext* script) {
|
||||
/*s32 DemoJoystickRadial(ScriptContext* script) {
|
||||
float a;
|
||||
float b;
|
||||
s32* nextPos = script->ptrReadPos + 1;
|
||||
|
|
@ -48,8 +48,8 @@ void __attribute__((naked)) DemoJoystickRadial(void) {
|
|||
a = get_float_variable(script, *script->ptrReadPos);
|
||||
b = get_float_variable(script, nextPos);
|
||||
|
||||
gGameStatus->demoStickX = a * sin_deg(b);
|
||||
gGameStatus->demoStickY = a * cos_deg(b);
|
||||
gGameStatus->demoStickX = (s32)(a * sin_deg(b));
|
||||
gGameStatus->demoStickY = (s32)(a * cos_deg(b));
|
||||
|
||||
return 2;
|
||||
}*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue