diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2024-08-28 01:47:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 17:47:39 -0600 |
| commit | a1f0d32d666c07d0754d97f107a5be59153768fd (patch) | |
| tree | fcc84d9daa940274be8cf76715be902d93338e64 /src/save.h | |
| parent | bb3cbe0500197f894c83230a9a170a2cbe7aa3e8 (diff) | |
Update decomp clang (#67)
* Update menus.c (#634)
* Update common_data.yml (#635)
* Renames for screenId and other changes (#636)
* screenId renames
* Rename surface map to collision mesh (#637)
* Rename some stack vars (#638)
* Fix syntax error (#639)
* Rename some stack vars
* Update collision.c
* Collision Documentation (#640)
* Collision related renames
* update doxygen (#649)
* change bool (#644)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* Update (#642)
* Delete trig_tables_bss.c (#650)
* fix typo audio (#656)
* fix typo src actor (#657)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* fix typo include (#658)
* fix course (#659)
* fix typo debug (#660)
* fix typo data (#661)
* replace number with const (#665)
* fix typo buffers (#655)
* fix typo buffers
* tweak ld file
* rename to sMemoryPool
* add a warning
---------
* fix typo src (#654)
* fix typo src
* fix non matcing
* Update code_80091750.c
---------
* fix typo racing (#653)
* fix typo racing
* get it match
* replace G_LINE3D to G_QUAD
---------
* fix typo src (#652)
* fix ending typo (#651)
* Action more info when it doesn't match and fix first diff (#662)
* Update linux-compile.yml
* fix first-diff
* Update first-diff.py
---------
* document texture of kart (#663)
* document texture of kart
* change screenPlayerId to screenId
* some documentation around object
* Revert "some documentation around object"
This reverts commit cbb39078e036bf2a417bed67359e910213acab28.
* more rename
---------
* Make evaluate_collision_players_palm_tree better (#667)
This matches just the same as before, but using those two casts instead of
shifts seems more likely to be accurate to the original source code
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
* add fedora instruciton (#666)
* start documenting animation (#668)
* start documenting animation
* Update course_data.c
* change comment
* update libultra asm (#648)
* update libultra asm
* fix gcc __osThreadTail
---------
* Document Vehicles (#641)
* start doc collision
* fix merge
* finish rename fonction related to vehicle
* document around waypoint of vehicle
* make some modification
* make some change and rename one
* copy_ to oldPos
* doc smoke ferry and train
* some rename
* fix some renaming
* precise index
* rename a funciton
* simplify waypoint_vehicles
* change some name
* change some name
* rename move_to_point_direction
* fix some conflict
* Update code_80005FD0.c
* Update code_80005FD0.h
---------
* Label a save info loop (#645)
* save info
* more gcc progress
* fix a value and do a rename (#669)
* update clang and add action (#664)
* update clang and add action
* try clang on course folder only
* forget two file
* Update course_displaylists.inc.c
* forget few other file
* Update course_vertices.inc.c
* format all code while get it match
* second pass
* format other dir
* disable clang format on bad ido code
* fix some tabulation
* revert format on tool dir
* Update clang-format.yml
* ignore gbi.h
* add some read me instruction
* fix error
* format and fixing error
* Update README.md
---------
* Update linkonly_generator.py (#670)
* format more file
* update
* fix compilation issue
* remove course_metadata folder
* re add course metadata folder
* fix banshee bordwalk crash
* fix windows eurk
* Update CMakeLists.txt
---------
Diffstat (limited to 'src/save.h')
| -rw-r--r-- | src/save.h | 135 |
1 files changed, 67 insertions, 68 deletions
diff --git a/src/save.h b/src/save.h index 1fe150af8..bccc0c428 100644 --- a/src/save.h +++ b/src/save.h @@ -11,15 +11,15 @@ #define CONTROLLER_3 2 #define CONTROLLER_4 3 -#define PFS_NO_ERROR 0 // controller pak no error return +#define PFS_NO_ERROR 0 // controller pak no error return #define PFS_NO_PAK_INSERTED 1 // no pak pressent or wrong device inserted into the controller -#define PFS_PAK_BAD_READ 2 // controller pak error while data transfer -#define PFS_FILE_OVERFLOW 4 // too many files written to in the controller pak -#define PFS_INVALID_DATA -1 // bad arguments, game note does not exist, osPfsInit was not called. +#define PFS_PAK_BAD_READ 2 // controller pak error while data transfer +#define PFS_FILE_OVERFLOW 4 // too many files written to in the controller pak +#define PFS_INVALID_DATA -1 // bad arguments, game note does not exist, osPfsInit was not called. // controller pak test functions -#define PFS_NUM_FILES_ERROR -2 +#define PFS_NUM_FILES_ERROR -2 #define PFS_FREE_BLOCKS_ERROR -3 -#define PFS_PAK_STATE_OK -4 +#define PFS_PAK_STATE_OK -4 #define NO_PAK 0 #define PAK 1 @@ -32,82 +32,81 @@ void write_save_data_grand_prix_points_and_sound_mode(void); void func_800B46D0(void); void func_800B4728(s32); void reset_save_data_grand_prix_points_and_sound_mode(void); -u8 checksum_time_trial_records(s32); -s32 func_800B6348(s32); -s32 func_800B639C(s32); -s32 func_800B63F0(s32); -u8 compute_save_data_checksum_1(void); -u8 compute_save_data_checksum_2(void); +u8 checksum_time_trial_records(s32); +s32 func_800B6348(s32); +s32 func_800B639C(s32); +s32 func_800B63F0(s32); +u8 compute_save_data_checksum_1(void); +u8 compute_save_data_checksum_2(void); void load_save_data(void); void func_800B4A9C(s32); void validate_save_data(void); -void populate_time_trial_record(u8 *timeTrialRecord, u32 time, s32 characterId); -u32 func_800B4DF4(u8*); -s32 func_800B4E24(s32); -u32 func_800B4EB4(s32, s32); -s32 func_800B4F2C(void); -s32 func_800B4FB0(s32); -s32 func_800B5020(u32, s32); -s32 func_800B5218(void); +void populate_time_trial_record(u8* timeTrialRecord, u32 time, s32 characterId); +u32 func_800B4DF4(u8*); +s32 func_800B4E24(s32); +u32 func_800B4EB4(s32, s32); +s32 func_800B4F2C(void); +s32 func_800B4FB0(s32); +s32 func_800B5020(u32, s32); +s32 func_800B5218(void); void func_800B536C(s32); void func_800B5404(s32, s32); -u8 func_800B54C0(s32, s32); -u8 func_800B54EC(s32, s32); -u8 func_800B5508(s32, s32, s32); -s32 func_800B5530(s32); -s32 func_800B555C(void); -s32 func_800B557C(void); +u8 func_800B54C0(s32, s32); +u8 func_800B54EC(s32, s32); +u8 func_800B5508(s32, s32, s32); +s32 func_800B5530(s32); +s32 func_800B555C(void); +s32 func_800B557C(void); void func_800B559C(s32); -s32 func_800B578C(s32); -s32 func_800B5888(s32); -s32 func_800B58C4(s32); +s32 func_800B578C(s32); +s32 func_800B5888(s32); +s32 func_800B58C4(s32); void update_save_data_backup(void); -u8 compute_save_data_checksum_backup_1(void); -u8 compute_save_data_checksum_backup_2(void); -s32 validate_save_data_checksum_backup(void); -s32 check_for_controller_pak(s32); -s32 func_800B5B2C(s32); -s32 controller_pak_1_status(void); -s32 controller_pak_2_status(void); -s32 func_800B5F30(void); -s32 func_800B6014(void); -s32 func_800B6088(s32); -u8 func_800B60E8(s32); -s32 func_800B6178(s32); -s32 func_800B64EC(s32); -s32 func_800B65F4(s32, s32); +u8 compute_save_data_checksum_backup_1(void); +u8 compute_save_data_checksum_backup_2(void); +s32 validate_save_data_checksum_backup(void); +s32 check_for_controller_pak(s32); +s32 func_800B5B2C(s32); +s32 controller_pak_1_status(void); +s32 controller_pak_2_status(void); +s32 func_800B5F30(void); +s32 func_800B6014(void); +s32 func_800B6088(s32); +u8 func_800B60E8(s32); +s32 func_800B6178(s32); +s32 func_800B64EC(s32); +s32 func_800B65F4(s32, s32); void func_800B6708(void); void func_800B6798(void); -u8 func_800B6828(s32); -u8 func_800B68F4(s32); -s32 func_800B69BC(s32); -s32 func_800B6A68(void); +u8 func_800B6828(s32); +u8 func_800B68F4(s32); +s32 func_800B69BC(s32); +s32 func_800B6A68(void); /* data */ // these might not be in this file, but for now... -extern u32* D_800DC714; +extern u32* D_800DC714; -extern u16 gCompanyCode; -extern u32 gGameCode; // osPfs gamecode -extern s8 gControllerPak1State; // Current state of Controller Pak 1 - -extern s8 sControllerPak2State; // Current state of the Controller Pak 2 -extern const u8 D_800F2E60[]; -extern const u8 gGameName[]; -extern const u8 gExtCode[]; -extern u16 D_80162DD6; -extern s32 D_80162DE0; -extern s32 D_80162DFC; -extern OSPfs gControllerPak1FileHandle; -extern OSPfs gControllerPak2FileHandle; -extern OSPfsState pfsState[16]; -extern s32 pfsError[16]; -extern s32 gControllerPak1NumFilesUsed; -extern s32 gControllerPak1MaxWriteableFiles; -extern s8 D_8018EDE5; -extern s8 D_8018EDE6; -extern s8 D_8018EDE7; +extern u16 gCompanyCode; +extern u32 gGameCode; // osPfs gamecode +extern s8 gControllerPak1State; // Current state of Controller Pak 1 +extern s8 sControllerPak2State; // Current state of the Controller Pak 2 +extern const u8 D_800F2E60[]; +extern const u8 gGameName[]; +extern const u8 gExtCode[]; +extern u16 D_80162DD6; +extern s32 D_80162DE0; +extern s32 D_80162DFC; +extern OSPfs gControllerPak1FileHandle; +extern OSPfs gControllerPak2FileHandle; +extern OSPfsState pfsState[16]; +extern s32 pfsError[16]; +extern s32 gControllerPak1NumFilesUsed; +extern s32 gControllerPak1MaxWriteableFiles; +extern s8 D_8018EDE5; +extern s8 D_8018EDE6; +extern s8 D_8018EDE7; #endif /* CODE_800B045E0_H */ |
