mirror of https://github.com/n64decomp/mk64.git
Rename code_8001F980 to render_player and code_800B45E0 to save (#507)
* Update and rename code_8001F980.c to render_player.c * Rename code_8001F980.h to render_player.h * rename import file to render_player * Update and rename code_80004740.c to save.c * Rename code_80004740.h to save.h
This commit is contained in:
parent
f1befa8bcd
commit
670a930f31
|
|
@ -70,7 +70,7 @@
|
|||
#include "src/code_800029B0.h"
|
||||
#include "src/code_80004740.h"
|
||||
#include "src/code_80005FD0.h"
|
||||
#include "src/code_8001F980.h"
|
||||
#include "src/render_player.h"
|
||||
#include "src/code_8003DC40.h"
|
||||
#include "src/code_80057C60.h"
|
||||
#include "src/code_8006E9C0.h"
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
#include "src/code_80091440.h"
|
||||
#include "src/code_80091750.h"
|
||||
#include "src/code_800AF9B0.h"
|
||||
#include "src/code_800B45E0.h"
|
||||
#include "src/save.h"
|
||||
#include "src/common_textures.h"
|
||||
#include "src/data/data_800E45C0.h"
|
||||
#include "src/data/data_800E8700.h"
|
||||
|
|
|
|||
|
|
@ -49,10 +49,10 @@ index 02275b1..406739d 100644
|
|||
break;
|
||||
case 8:
|
||||
func_8001E0C4(camera, player, index);
|
||||
diff --git a/src/code_8001F980.c b/src/code_8001F980.c
|
||||
diff --git a/src/render_player.c b/src/render_player.c
|
||||
index 6b14e27..d10796b 100644
|
||||
--- a/src/code_8001F980.c
|
||||
+++ b/src/code_8001F980.c
|
||||
--- a/src/render_player.c
|
||||
+++ b/src/render_player.c
|
||||
@@ -65,6 +65,8 @@ void func_8001F9E4(Player *player, Camera *camera, s8 arg2) {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
12
mk64.ld
12
mk64.ld
|
|
@ -46,7 +46,7 @@ SECTIONS
|
|||
BUILD_DIR/asm/unused_overflow_check.o(.text);
|
||||
BUILD_DIR/src/code_80005FD0.jp.o(.text);
|
||||
BUILD_DIR/src/camera.o(.text);
|
||||
BUILD_DIR/src/code_8001F980.o(.text);
|
||||
BUILD_DIR/src/render_player.o(.text);
|
||||
BUILD_DIR/src/kart_dma.o(.text);
|
||||
BUILD_DIR/src/player_controller.o(.text);
|
||||
BUILD_DIR/src/spawn_players.o(.text);
|
||||
|
|
@ -66,7 +66,7 @@ SECTIONS
|
|||
BUILD_DIR/src/code_80091750.jp.o(.text);
|
||||
BUILD_DIR/src/code_800AF9B0.o(.text);
|
||||
BUILD_DIR/src/menus.o(.text);
|
||||
BUILD_DIR/src/code_800B45E0.o(.text);
|
||||
BUILD_DIR/src/save.o(.text);
|
||||
BUILD_DIR/src/audio/synthesis.o(.text);
|
||||
BUILD_DIR/src/audio/heap.o(.text);
|
||||
BUILD_DIR/src/audio/load.o(.text);
|
||||
|
|
@ -210,7 +210,7 @@ SECTIONS
|
|||
BUILD_DIR/src/staff_ghosts.o(.data);
|
||||
BUILD_DIR/data/data_0DD0A0_1.o(.data);
|
||||
BUILD_DIR/src/camera.o(.data);
|
||||
BUILD_DIR/src/code_8001F980.o(.data);
|
||||
BUILD_DIR/src/render_player.o(.data);
|
||||
BUILD_DIR/src/kart_dma.o(.data);
|
||||
BUILD_DIR/src/data/kart_attributes.inc.o(.data);
|
||||
BUILD_DIR/src/player_controller.o(.data);
|
||||
|
|
@ -224,7 +224,7 @@ SECTIONS
|
|||
BUILD_DIR/src/code_80091750.jp.o(.data);
|
||||
BUILD_DIR/src/code_800AF9B0.o(.data);
|
||||
BUILD_DIR/src/menus.o(.data);
|
||||
BUILD_DIR/src/code_800B45E0.o(.data);
|
||||
BUILD_DIR/src/save.o(.data);
|
||||
BUILD_DIR/src/data/data_800E8700.o(.data);
|
||||
BUILD_DIR/src/audio/synthesis.o(.data);
|
||||
BUILD_DIR/src/audio/heap.o(.data);
|
||||
|
|
@ -259,7 +259,7 @@ SECTIONS
|
|||
BUILD_DIR/src/code_800029B0.o(.rodata);
|
||||
BUILD_DIR/src/code_80005FD0.jp.o(.rodata);
|
||||
BUILD_DIR/src/camera.o(.rodata);
|
||||
BUILD_DIR/src/code_8001F980.o(.rodata);
|
||||
BUILD_DIR/src/render_player.o(.rodata);
|
||||
BUILD_DIR/src/player_controller.o(.rodata);
|
||||
BUILD_DIR/src/spawn_players.o(.rodata);
|
||||
BUILD_DIR/src/code_8003DC40.o(.rodata);
|
||||
|
|
@ -272,7 +272,7 @@ SECTIONS
|
|||
BUILD_DIR/src/code_80091750.jp.o(.rodata);
|
||||
BUILD_DIR/src/code_800AF9B0.o(.rodata);
|
||||
BUILD_DIR/src/menus.o(.rodata);
|
||||
BUILD_DIR/src/code_800B45E0.o(.rodata);
|
||||
BUILD_DIR/src/save.o(.rodata);
|
||||
BUILD_DIR/src/audio/heap.o(.rodata);
|
||||
BUILD_DIR/src/audio/load.o(.rodata);
|
||||
BUILD_DIR/src/audio/playback.o(.rodata);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "racing/memory.h"
|
||||
#include "waypoints.h"
|
||||
#include "variables.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "collision.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "code_80005FD0.h"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "camera.h"
|
||||
#include "actors.h"
|
||||
#include "actors_extended.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "player_controller.h"
|
||||
#include "code_80071F00.h"
|
||||
#include "collision.h"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include "math_util.h"
|
||||
#include "math_util_2.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "hud_renderer.h"
|
||||
#include "code_80071F00.h"
|
||||
#include "code_80086E70.h"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "kart_attributes.h"
|
||||
#include "waypoints.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "player_controller.h"
|
||||
#include "hud_renderer.h"
|
||||
#include "code_80057C60.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "code_80091750.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "menus.h"
|
||||
#include "code_800B45E0.h"
|
||||
#include "save.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "credits.h"
|
||||
#include "data_segment2.h"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include <code_800029B0.h>
|
||||
#include <code_80004740.h>
|
||||
#include <code_80005FD0.h>
|
||||
#include <code_8001F980.h>
|
||||
#include <render_player.h>
|
||||
#include <player_controller.h>
|
||||
#include <code_8003DC40.h>
|
||||
#include <code_80057C60.h>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
#include <code_80091440.h>
|
||||
#include <code_80091750.h>
|
||||
#include <code_800AF9B0.h>
|
||||
#include <code_800B45E0.h>
|
||||
#include <save.h>
|
||||
#include <code_80280000.h>
|
||||
#include <podium_ceremony_actors.h>
|
||||
#include <code_80281780.h>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#include "podium_ceremony_actors.h"
|
||||
#include "ceremony_and_credits.h"
|
||||
#include "podium_ceremony_actors.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
|
||||
struct UnkStruct80287560 {
|
||||
s16 unk0;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "memory.h"
|
||||
#include "variables.h"
|
||||
#include "common_textures.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "hud_renderer.h"
|
||||
#include "podium_ceremony_actors.h"
|
||||
#include "camera_junk.h"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#include "waypoints.h"
|
||||
#include "bomb_kart.h"
|
||||
#include "common_textures.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "code_80004740.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "code_80057C60.h"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
#include "code_80057C60.h"
|
||||
#include "profiler.h"
|
||||
#include "player_controller.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "render_courses.h"
|
||||
#include "actors.h"
|
||||
#include "staff_ghosts.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "memory.h"
|
||||
#include "collision.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
|
||||
#pragma intrinsic (sqrtf)
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include "code_80005FD0.h"
|
||||
#include "code_80091750.h"
|
||||
#include "code_800AF9B0.h"
|
||||
#include "code_800B45E0.h"
|
||||
#include "save.h"
|
||||
#include "staff_ghosts.h"
|
||||
#include "save_data.h"
|
||||
#include <sounds.h>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "kart_attributes.h"
|
||||
#include "racing/memory.h"
|
||||
#include "math_util.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "code_8008C1D0.h"
|
||||
#include "collision.h"
|
||||
#include "waypoints.h"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "memory.h"
|
||||
#include "camera.h"
|
||||
#include "common_textures.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "code_80091750.h"
|
||||
#include "actors.h"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "functions.h"
|
||||
#include "kart_dma.h"
|
||||
#include "objects.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "code_8008C1D0.h"
|
||||
#include "framebuffers.h"
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
#include <defines.h>
|
||||
#include "global.h"
|
||||
|
||||
#include "code_800B45E0.h"
|
||||
#include "save.h"
|
||||
|
||||
#include "code_80091750.h"
|
||||
#include "menus.h"
|
||||
|
|
@ -370,7 +370,7 @@ s32 func_800B5218(void) {
|
|||
}
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_800B45E0/func_800B5218.s")
|
||||
GLOBAL_ASM("asm/non_matchings/save/func_800B5218.s")
|
||||
#endif
|
||||
|
||||
void func_800B536C(s32 arg0) {
|
||||
|
|
@ -506,7 +506,7 @@ s32 func_800B578C(s32 arg0) {
|
|||
return (var_v1 % 256) & 0xFF;
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_800B45E0/func_800B578C.s")
|
||||
GLOBAL_ASM("asm/non_matchings/save/func_800B578C.s")
|
||||
#endif
|
||||
|
||||
s32 func_800B5888(s32 arg0) {
|
||||
|
|
@ -759,7 +759,7 @@ u8 func_800B60E8(s32 page) {
|
|||
return checksum;
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_800B45E0/func_800B60E8.s")
|
||||
GLOBAL_ASM("asm/non_matchings/save/func_800B60E8.s")
|
||||
#endif
|
||||
|
||||
s32 func_800B6178(s32 arg0) {
|
||||
|
|
@ -982,7 +982,7 @@ u8 func_800B68F4(s32 arg0) {
|
|||
return checksum;
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_800B45E0/func_800B68F4.s")
|
||||
GLOBAL_ASM("asm/non_matchings/save/func_800B68F4.s")
|
||||
#endif
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
|
|
@ -1006,7 +1006,7 @@ s32 func_800B69BC(s32 arg0) {
|
|||
return osPfsReadWriteFile(&gControllerPak1FileHandle, gControllerPak1FileNote, PFS_WRITE, offset, sizeof(struct_8018EE10_entry), (u8 *)plz);
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_800B45E0/func_800B69BC.s")
|
||||
GLOBAL_ASM("asm/non_matchings/save/func_800B69BC.s")
|
||||
#endif
|
||||
|
||||
s32 func_800B6A68(void) {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef CODE_800B045E0_H
|
||||
#define CODE_800B045E0_H
|
||||
#ifndef SAVE_H
|
||||
#define SAVE_H
|
||||
|
||||
#include "PR/os.h"
|
||||
#include "common_structs.h"
|
||||
|
|
@ -16,11 +16,11 @@
|
|||
#include "render_courses.h"
|
||||
#include "staff_ghosts.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
#include "podium_ceremony_actors.h"
|
||||
#include "main.h"
|
||||
#include "menus.h"
|
||||
#include "code_8001F980.h"
|
||||
#include "render_player.h"
|
||||
|
||||
// arg4 is height? Or something like that?
|
||||
void spawn_player(Player *player, s8 playerIndex, f32 startingRow, f32 startingColumn, f32 arg4, f32 arg5, u16 characterId, s16 playerType) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#include "main.h"
|
||||
#include "code_800029B0.h"
|
||||
#include "framebuffers.h"
|
||||
#include "code_800B45E0.h"
|
||||
#include "save.h"
|
||||
#include "staff_ghosts.h"
|
||||
#include "code_80091750.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ segments:
|
|||
- [0x6B90, asm, unused_overflow_check]
|
||||
- [0x6BB0, c, code_80005FD0]
|
||||
- [0x1D0B0, c, camera]
|
||||
- [0x20560, c, code_8001F980]
|
||||
- [0x20560, c, render_player]
|
||||
- [0x27C20, c, kart_dma]
|
||||
- [0x288E0, c, code_80027D00]
|
||||
- [0x39FA0, c, spawn_players]
|
||||
|
|
@ -73,7 +73,7 @@ segments:
|
|||
- [0x92350, c, code_80091750]
|
||||
- [0xB05B0, c, code_800AF9B0]
|
||||
- [0xB0F50, c, menus]
|
||||
- [0xB51E0, c, code_800B45E0]
|
||||
- [0xB51E0, c, save]
|
||||
- [0xB77F0, c, audio/synthesis]
|
||||
- [0xB99E0, c, audio/heap]
|
||||
- [0xBB680, c, audio/load]
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ segments:
|
|||
- [0x6BB0, asm, unused_overflow_check]
|
||||
- [0x6BD0, c, code_80005FD0]
|
||||
- [0x1D0D0, c, camera]
|
||||
- [0x20580, c, code_8001F980]
|
||||
- [0x20580, c, render_player]
|
||||
- [0x27C40, c, kart_dma]
|
||||
- [0x28900, c, code_80027D00]
|
||||
- [0x39FC0, c, spawn_players]
|
||||
|
|
@ -72,7 +72,7 @@ segments:
|
|||
- [0x92350, c, code_80091750]
|
||||
- [0xB05B0, c, code_800AF9B0]
|
||||
- [0xB0F50, c, menus]
|
||||
- [0xB51E0, c, code_800B45E0]
|
||||
- [0xB51E0, c, save]
|
||||
- [0xB77F0, c, audio/synthesis]
|
||||
- [0xB99E0, c, audio/heap]
|
||||
- [0xBB680, c, audio/load]
|
||||
|
|
|
|||
Loading…
Reference in New Issue