Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
a36c737
decomp: clarify names in wait_for_graphics_pipeline_idle
pezzadev Oct 17, 2026
c24a7c2
decomp: clarify names in register_moby_class
pezzadev Oct 17, 2026
8f59adb
decomp: clarify names in draw_stretchable_ui_frame
pezzadev Oct 17, 2026
a9abc78
decomp: clarify names in load_display_text_resource_entry
pezzadev Oct 17, 2026
d22aaf9
decomp: clarify names in set_up_vis_gif_viewer
pezzadev Oct 17, 2026
bc16977
decomp: clarify names in spawn_spark
pezzadev Oct 17, 2026
442ea72
decomp: clarify names in draw_moby_list
pezzadev Oct 17, 2026
36f22e4
decomp: clarify names in snd_set_sound_params_cb
pezzadev Oct 17, 2026
ce5d3fd
decomp: clarify names in snd_play_sound_vol_pan_pmpb
pezzadev Oct 17, 2026
0798a5e
decomp: clarify names in draw_pause_ring
pezzadev Oct 17, 2026
cdabf13
decomp: clarify names in video_dec_create
pezzadev Oct 17, 2026
73e6486
decomp: clarify names in play_mpeg_movie
pezzadev Oct 17, 2026
22adc94
decomp: clarify names in draw_hud_sprite_rect
pezzadev Oct 17, 2026
d624f4b
decomp: clarify names in decode_map_mask
pezzadev Oct 17, 2026
9ba77ed
decomp: clarify names in append_scrolling_textured_quad
pezzadev Oct 17, 2026
398599b
decomp: clarify names in matrix_to_quaternion
pezzadev Oct 17, 2026
d9abfdf
decomp: clarify names in pick_map_slot_to_evict
pezzadev Oct 17, 2026
8f14175
decomp: clarify names in CheckStateRange
pezzadev Oct 17, 2026
81b5462
decomp: clarify names in snd_reset_state_and_flush_commands
pezzadev Oct 17, 2026
b6ac28e
decomp: clarify names in audio_dec_delete
pezzadev Oct 17, 2026
e9deb65
decomp: clarify names in FUN_0021df30
pezzadev Oct 17, 2026
d317698
decomp: clarify names in snd_get_doppler_pitch_mod
pezzadev Oct 17, 2026
1f8128c
decomp: clarify names in mpeg_error
pezzadev Oct 17, 2026
761872a
decomp: clarify names in snd_stream_safe_check_cd_idle
pezzadev Oct 17, 2026
6141059
decomp: clarify names in snd_set_playback_mode
pezzadev Oct 17, 2026
8e50159
decomp: clarify names in snd_stop_sound
pezzadev Oct 17, 2026
4c0d902
decomp: clarify names in refresh_point_light
pezzadev Oct 17, 2026
ee1764e
decomp: clarify names in FUN_0021ca98
pezzadev Oct 17, 2026
9b4faeb
decomp: clarify names in snd_unload_bank
pezzadev Oct 17, 2026
0d67c06
decomp: clarify names in snd_pause_all_sounds_in_group
pezzadev Oct 17, 2026
ebe0e11
decomp: clarify names in snd_pause_vag_stream
pezzadev Oct 17, 2026
bb7478b
decomp: clarify names in leave_menu_prompt
pezzadev Oct 17, 2026
c75d7b7
decomp: clarify names in enter_menu_prompt
pezzadev Oct 17, 2026
f0b4619
decomp: clarify names in set_scrolling_status_message
pezzadev Oct 17, 2026
87c473d
decomp: clarify names in snd_continue_vag_stream
pezzadev Oct 17, 2026
b589306
decomp: clarify names in snd_continue_all_sounds_in_group
pezzadev Oct 17, 2026
a5c1951
decomp: clarify names in finish_audio_stream_read
pezzadev Oct 17, 2026
40b536f
decomp: clarify names in snd_stream_safe_cd_get_error
pezzadev Oct 17, 2026
af13088
decomp: clarify names in leave_save_slot_screen
pezzadev Oct 17, 2026
96c317f
decomp: clarify names in enter_save_slot_screen
pezzadev Oct 17, 2026
893455b
decomp: clarify names in FUN_00221d28
pezzadev Oct 17, 2026
14e61c0
decomp: clarify names in relocate_asset_entry_pointers
pezzadev Oct 17, 2026
d76063a
decomp: clarify names in music_pause
pezzadev Oct 17, 2026
7725753
decomp: clarify names in mark_stream_buffer_read_active
pezzadev Oct 17, 2026
44d7393
decomp: clarify names in vo_buf_get_data
pezzadev Oct 17, 2026
aa4fcca
decomp: clarify names in vu1_add_vif_code
pezzadev Oct 17, 2026
678ea48
decomp: clarify names in find_map_entry_slot
pezzadev Oct 17, 2026
6a220a5
decomp: clarify names in request_audio_stream_break
pezzadev Oct 17, 2026
c5909fd
decomp: clarify names in enable_dmac
pezzadev Oct 17, 2026
69c93c1
decomp: clarify names in set_d4_chcr
pezzadev Oct 17, 2026
881ebcf
decomp: clarify names in start_display
pezzadev Oct 17, 2026
fab2897
decomp: clarify names in random_angle_radians
pezzadev Oct 17, 2026
8735a87
decomp: clarify names in vo_buf_create
pezzadev Oct 17, 2026
6d57685
decomp: clarify names in get_mpeg_timestamp
pezzadev Oct 17, 2026
962c503
decomp: clarify names in clear_record_flag_by_key
pezzadev Oct 17, 2026
f17f75a
decomp: clarify names in snd_play_vag_stream_by_loc_ex_cb
pezzadev Oct 17, 2026
30023b4
decomp: clarify names in transform_scaled_vertex_batch
pezzadev Oct 17, 2026
a316a0d
decomp: clarify names in disable_intc
pezzadev Oct 17, 2026
fc692c2
decomp: clarify names in unpack_spr_descriptor
pezzadev Oct 17, 2026
4dff231
decomp: clarify names in FUN_00227140
pezzadev Oct 17, 2026
5f62e7a
decomp: clarify names in load_irx_module
pezzadev Oct 17, 2026
21590fe
decomp: clarify names in random_float_between
pezzadev Oct 17, 2026
0afbf5c
decomp: clarify names in reserve_aligned_buffer_space
pezzadev Oct 17, 2026
22dc633
decomp: clarify names in send_to_spu
pezzadev Oct 17, 2026
0c3a00f
decomp: clarify names in normalize_vector_triplet
pezzadev Oct 17, 2026
b800190
decomp: clarify names in set_d3_chcr
pezzadev Oct 17, 2026
d7bcfe2
decomp: clarify names in font_print_wrapped_small
pezzadev Oct 17, 2026
7520045
decomp: clarify names in build_moby_bone_transform
pezzadev Oct 17, 2026
379594b
decomp: clarify names in disable_dmac
pezzadev Oct 17, 2026
3eaab69
decomp: clarify names in round_float_to_decimal_places
pezzadev Oct 17, 2026
bb9fb65
decomp: clarify names in set_video_timing
pezzadev Oct 17, 2026
b66c2f5
decomp: clarify names in video_callback
pezzadev Oct 17, 2026
4f2ef69
decomp: clarify names in cosine_interpolate
pezzadev Oct 17, 2026
818f67c
decomp: clarify names in find_next_pause_page
pezzadev Oct 17, 2026
82b7ff1
decomp: clarify names in audio_dec_create
pezzadev Oct 17, 2026
4ff54f7
decomp: clarify names in draw_menu_text_box
pezzadev Oct 17, 2026
11401a1
decomp: clarify names in enable_intc
pezzadev Oct 17, 2026
eb16c26
decomp: clarify names in collect_mission_ids
pezzadev Oct 17, 2026
fb2e1a3
decomp: clarify names in handle_sif_set_system_register
pezzadev Oct 17, 2026
c3fee37
decomp: clarify names in draw_menu_selection_marker
pezzadev Oct 17, 2026
033c717
decomp: clarify names in FUN_00221968
pezzadev Oct 17, 2026
7be8617
decomp: clarify names in update_world_object_animation
pezzadev Oct 17, 2026
6a51c2b
decomp: clarify names in _isOutSizeOK
pezzadev Oct 17, 2026
85a81a6
decomp: clarify names in update_audio_stream_until_idle
pezzadev Oct 17, 2026
934a914
decomp: clarify names in draw_selected_item_ammo
pezzadev Oct 17, 2026
21376b0
decomp: clarify names in decode_motion_vector
pezzadev Oct 17, 2026
7b4b966
decomp: clarify names in select_next_stream_buffer
pezzadev Oct 17, 2026
0eaa09d
decomp: clarify names in draw_quit_game_menu
pezzadev Oct 17, 2026
245a10c
decomp: clarify names in _skipMB0
pezzadev Oct 17, 2026
19f10d8
decomp: clarify names in _lshift
pezzadev Oct 17, 2026
c039877
decomp: clarify names in vu0_load_micro_program
pezzadev Oct 17, 2026
77ad8aa
decomp: clarify names in transition_default_draw
pezzadev Oct 17, 2026
6fc03f3
decomp: clarify names in sceMcSync
pezzadev Oct 17, 2026
b3930b3
decomp: clarify names in mode_freeze_init
pezzadev Oct 17, 2026
5ea2b95
decomp: clarify names in send_adpcm
pezzadev Oct 17, 2026
8ff450e
decomp: clarify names in _request_bind
pezzadev Oct 17, 2026
396546e
decomp: clarify names in _outputFrame
pezzadev Oct 17, 2026
4f73ba7
decomp: clarify names in snd_bank_load_by_loc
pezzadev Oct 17, 2026
ea9a7eb
decomp: clarify names in FUN_0020be68
pezzadev Oct 17, 2026
e638f14
decomp: clarify names in _pack_header
pezzadev Oct 17, 2026
fb2d725
decomp: clarify names in FUN_00129b38
pezzadev Oct 17, 2026
758684b
decomp: clarify names in handle_sif_initialize_command
pezzadev Oct 17, 2026
2827796
decomp: clarify names in sceDbcReceiveData
pezzadev Oct 17, 2026
08c0c1b
decomp: clarify names in _decodeOrSkipFrame
pezzadev Oct 17, 2026
2fae88b
decomp: clarify names in scePad2LinkDriver
pezzadev Oct 17, 2026
69be975
decomp: clarify names in _decodeOrSkipField
pezzadev Oct 17, 2026
444f5d7
decomp: clarify names in dpsub
pezzadev Oct 17, 2026
86f89e6
decomp: clarify names in _PES_packet
pezzadev Oct 17, 2026
e54afa6
decomp: clarify names in read
pezzadev Oct 17, 2026
45f80cc
decomp: clarify names in SetD3Chcr
pezzadev Oct 17, 2026
0901b41
decomp: clarify names in get_iob
pezzadev Oct 17, 2026
6d1c5dc
decomp: clarify names in _decMB0
pezzadev Oct 17, 2026
edb6bb1
decomp: clarify names in _cpr8
pezzadev Oct 17, 2026
cffc1b6
decomp: clarify names in _motionVector
pezzadev Oct 17, 2026
682a870
decomp: clarify names in _decodeOrSkip
pezzadev Oct 17, 2026
df2b784
decomp: clarify names in _nextStartCode
pezzadev Oct 17, 2026
a002c40
decomp: clarify names in sceCdMmode
pezzadev Oct 17, 2026
415e2ce
decomp: clarify names in receiveDataFromIPU
pezzadev Oct 17, 2026
084118e
decomp: clarify names in UpdateTempTrackData
pezzadev Oct 17, 2026
0707a9d
decomp: clarify names in sceDmaReset
pezzadev Oct 17, 2026
2ee99c5
decomp: clarify names in sceDbcGetDepNumber
pezzadev Oct 17, 2026
e536542
decomp: clarify names in _request_rdata
pezzadev Oct 17, 2026
2066d20
decomp: clarify names in _sysbitInit
pezzadev Oct 17, 2026
888514e
decomp: clarify names in _dispRefImage
pezzadev Oct 17, 2026
92f8383
decomp: clarify names in SetD4Chcr
pezzadev Oct 17, 2026
a72a61f
decomp: clarify names in __sinit
pezzadev Oct 17, 2026
faf19b0
decomp: clarify names in sceCdCallback
pezzadev Oct 17, 2026
9d3974c
decomp: clarify names in SetD4ChcrVariant
pezzadev Oct 17, 2026
4e7942c
decomp: clarify names in sceIpuSync
pezzadev Oct 17, 2026
12fe676
decomp: clarify names in scePad2GetSide
pezzadev Oct 17, 2026
5ea7eb8
decomp: clarify names in scePad2CheckDma
pezzadev Oct 17, 2026
0a76c53
decomp: clarify names in _lastFrame
pezzadev Oct 17, 2026
ca613fa
decomp: clarify names in sceDbcSetWorkAddr
pezzadev Oct 17, 2026
6f52665
decomp: clarify names in _flushBuf
pezzadev Oct 17, 2026
317dc08
decomp: clarify names in _sceSifLoadModuleBuffer
pezzadev Oct 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/audio/banks/snd_bank_load_by_loc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern s32 sceSifCallRpc(void *, s32, s32, void *, s32, void *, s32, void *, voi

s32 snd_bank_load_by_loc(s32 location, s32 arg1) __asm__("FUN_0012df20");

s32 snd_bank_load_by_loc(s32 location, s32 arg1) {
s32 snd_bank_load_by_loc(s32 location, s32 byte_offset) {
snd_cd_load_error = 0;
if (snd_cd_callback_pending != 0) {
printf("snd_BankLoadByLoc: Load already in progress!\n");
Expand All @@ -26,7 +26,7 @@ s32 snd_bank_load_by_loc(s32 location, s32 arg1) {
printf("snd_BankLoadByLoc: CD BUSY!\n");
return 0;
}
snd_cd_bank_load_request[1] = arg1;
snd_cd_bank_load_request[1] = byte_offset;
snd_cd_callback_arg = 0xFFFFFFFF;
snd_cd_bank_load_request[0] = location;
while (SceSifCheckStatRpc(D_0015EBE8) != 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/audio/banks/snd_unload_bank.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ extern s32 snd_send_iop_command_no_wait(s32 cmd, s32 size, void *buf, s32 a,
s32 b) __asm__("func_0012E6E0");
void snd_unload_bank(s32 arg0) __asm__("FUN_0012e1d8");

void snd_unload_bank(s32 arg0) {
void snd_unload_bank(s32 bank_handle) {
u8 sp_slot[0x10];
*(s32 *)sp_slot = arg0;
*(s32 *)sp_slot = bank_handle;
snd_send_iop_command_no_wait(6, 4, sp_slot, 0, 0);
}

Expand Down
4 changes: 2 additions & 2 deletions src/audio/decoder/audio_dec_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern s32 snd_init_movie_sound() __asm__("FUN_0012f068");
extern void fast_mem_zero16() __asm__("func_001F9810");
s32 audio_dec_create(struct AudioDec *dec, s32 buffer, s32 buffer_size, s32 arg3) __asm__("FUN_0023abd0");

s32 audio_dec_create(struct AudioDec *dec, s32 buffer, s32 buffer_size, s32 arg3) {
s32 audio_dec_create(struct AudioDec *dec, s32 buffer, s32 buffer_size, s32 globals_address) {
s32 movie_handle;
s32 three;
s32 four;
Expand All @@ -26,7 +26,7 @@ s32 audio_dec_create(struct AudioDec *dec, s32 buffer, s32 buffer_size, s32 arg3
dec->totalBytesSent = 0;
dec->iopZero = 0;
dec->spuPos = 0;
D_001612BC = (struct Globals_001612BC *)arg3;
D_001612BC = (struct Globals_001612BC *)globals_address;
four = 0x400;
dec->iopBuffSize = four;
movie_handle = snd_init_movie_sound(0x400, 0x1000, 0x400, 0, 5, 3);
Expand Down
2 changes: 1 addition & 1 deletion src/audio/decoder/audio_dec_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
extern s32 snd_close_movie_sound() __asm__("FUN_0012f0e0");
s32 audio_dec_delete(s32 arg0) __asm__("FUN_0023ac90");

s32 audio_dec_delete(s32 arg0) {
s32 audio_dec_delete(s32 unused_arg) {
snd_close_movie_sound();
return 1;
}
Expand Down
4 changes: 2 additions & 2 deletions src/audio/decoder/send_adpcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ extern void send_to_spu(struct AudioDec *, unsigned char *, int, int) __asm__("f
pointer (one load, as retail). */
void send_adpcm(void *arg0) __asm__("FUN_0023afc0");

void send_adpcm(void *arg0) {
struct AudioDec *ad = arg0;
void send_adpcm(void *audio_decoder) {
struct AudioDec *ad = audio_decoder;
int avail = 0;
int i, j, n;
unsigned char *src, *dst;
Expand Down
4 changes: 2 additions & 2 deletions src/audio/decoder/send_to_spu.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern void snd_update_movie_adpcm(s32, s32) __asm__("FUN_0012f148");

void send_to_spu(struct AudioDec *dec, s32 src, s32 size, s32 arg3) __asm__("FUN_0023af18");

void send_to_spu(struct AudioDec *dec, s32 src, s32 size, s32 arg3) {
void send_to_spu(struct AudioDec *dec, s32 src, s32 size, s32 staging_byte_offset) {
u32 descriptor[4];
s32 dma_id;

Expand All @@ -22,7 +22,7 @@ void send_to_spu(struct AudioDec *dec, s32 src, s32 size, s32 arg3) {
} while (dma_id == 0);
while (sceSifDmaStat(dma_id) >= 0) {
}
snd_update_movie_adpcm(size, arg3);
snd_update_movie_adpcm(size, staging_byte_offset);
}

extern __typeof__(send_to_spu) func_0023AF18 __attribute__((alias("FUN_0023af18")));
4 changes: 2 additions & 2 deletions src/audio/mixer/snd_set_playback_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ extern s32 snd_send_iop_command_no_wait(s32 cmd, s32 size, void *buf, s32 a,
s32 b) __asm__("func_0012E6E0");
void snd_set_playback_mode(s32 arg0) __asm__("FUN_0012e240");

void snd_set_playback_mode(s32 arg0) {
void snd_set_playback_mode(s32 playback_mode) {
u8 sp_slot[0x10];
*(s32 *)sp_slot = arg0;
*(s32 *)sp_slot = playback_mode;
snd_send_iop_command_no_wait(11, 4, sp_slot, 0, 0);
}
4 changes: 2 additions & 2 deletions src/audio/music/music_pause.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "types.h"
#include "rnc/audio/music/music_stream_state.h"
void music_pause(s32 arg0) {
if (arg0 != 0) {
void music_pause(s32 pause_secondary) {
if (pause_secondary != 0) {
music_stream_state.secondary.fade_flags = -0x8000;
music_stream_state.secondary.unkE = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/audio/rpc/snd_reset_state_and_flush_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extern s32 snd_flush_sound_commands() __asm__("FUN_0012dc80");
void snd_reset_state_and_flush_commands(s32 arg0) __asm__("FUN_0012eb00");

extern s32 GlobalTableStatus __asm__("D_0015ECC4") __attribute__((sda));
void snd_reset_state_and_flush_commands(s32 arg0) {
void snd_reset_state_and_flush_commands(s32 unused_arg) {
GlobalTableStatus = 0;
snd_flush_sound_commands();
}
Expand Down
4 changes: 2 additions & 2 deletions src/audio/snd_get_doppler_pitch_mod.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
int snd_get_doppler_pitch_mod(int arg0) {
return (arg0 * 0x5F4) / 0x2E5;
int snd_get_doppler_pitch_mod(int projected_velocity) {
return (projected_velocity * 0x5F4) / 0x2E5;
}
4 changes: 2 additions & 2 deletions src/audio/streaming/clear_record_flag_by_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ struct KeyedFlagRecord {

s32 clear_record_flag_by_key(s32 arg0) __asm__("FUN_00225e20");

s32 clear_record_flag_by_key(s32 arg0) {
s32 clear_record_flag_by_key(s32 record_key) {
s32 i;

for (i = 0; i < 5; i++) {
if (graphics_buffer_descriptors[i].address == arg0) {
if (graphics_buffer_descriptors[i].address == record_key) {
graphics_buffer_descriptors[i].flags &= ~4;
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/audio/streaming/finish_audio_stream_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
extern s32 snd_stream_safe_cd_get_error() __asm__("func_0012EEF0");
void finish_audio_stream_read(s32 arg0) __asm__("FUN_00216950");

void finish_audio_stream_read(s32 arg0) {
if (arg0 == 1) {
void finish_audio_stream_read(s32 callback_value) {
if (callback_value == 1) {
music_stream_state.read_state = 0;
if (snd_stream_safe_cd_get_error() != 0) {
music_stream_state.read_state = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/audio/streaming/request_audio_stream_break.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
extern s32 snd_stream_safe_cd_break() __asm__("func_0012EEA8");
void request_audio_stream_break(s32 arg0) __asm__("FUN_002166e8");

void request_audio_stream_break(s32 arg0) {
void request_audio_stream_break(s32 unused_parameter) {
if (music_stream_state.read_state != 0) {
snd_stream_safe_cd_break();
music_stream_state.break_requested = 1;
Expand Down
4 changes: 2 additions & 2 deletions src/audio/streaming/select_next_stream_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ extern s32 get_stream_buffer_size() __asm__("func_00225D88");

s32 select_next_stream_buffer(s32 arg0) __asm__("FUN_00225c18");

s32 select_next_stream_buffer(s32 arg0) {
s32 select_next_stream_buffer(s32 require_low_flag_bit) {
s32 i;
s32 f;

for (i = 0; i < 5; i++) {
if (arg0 != 0) {
if (require_low_flag_bit != 0) {
f = graphics_buffer_descriptors[i].flags ^ 1;
} else {
f = graphics_buffer_descriptors[i].flags;
Expand Down
4 changes: 2 additions & 2 deletions src/audio/streaming/snd_continue_vag_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ extern s32 snd_send_iop_command_no_wait(s32 cmd, s32 size, void *buf, s32 a,
s32 b) __asm__("func_0012E6E0");
void snd_continue_vag_stream(s32 arg0) __asm__("FUN_0012eca0");

void snd_continue_vag_stream(s32 arg0) {
void snd_continue_vag_stream(s32 sound_handle) {
u8 sp_slot[0x10];
*(s32 *)(sp_slot + 0) = arg0;
*(s32 *)(sp_slot + 0) = sound_handle;
snd_send_iop_command_no_wait(46, 4, sp_slot, 0, 0);
}

Expand Down
4 changes: 2 additions & 2 deletions src/audio/streaming/snd_pause_vag_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ extern s32 snd_send_iop_command_no_wait(s32 cmd, s32 size, void *buf, s32 a,
s32 b) __asm__("func_0012E6E0");
void snd_pause_vag_stream(s32 arg0) __asm__("FUN_0012ec70");

void snd_pause_vag_stream(s32 arg0) {
void snd_pause_vag_stream(s32 sound_handle) {
u8 sp_slot[0x10];
*(s32 *)(sp_slot + 0) = arg0;
*(s32 *)(sp_slot + 0) = sound_handle;
snd_send_iop_command_no_wait(45, 4, sp_slot, 0, 0);
}

Expand Down
4 changes: 2 additions & 2 deletions src/audio/streaming/snd_play_vag_stream_by_loc_ex_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void snd_play_vag_stream_by_loc_ex_cb(s32 loc, s32 size, s32 vol_l, s32 vol_r, s
u64 cb_data) __asm__("FUN_0012ec08");

void snd_play_vag_stream_by_loc_ex_cb(s32 loc, s32 size, s32 vol_l, s32 vol_r, s32 pitch, s32 flags,
s32 voice, s32 channel, s32 a8, s32 id, u64 cb_data) {
s32 voice, s32 channel, s32 request_word_6, s32 id, u64 cb_data) {
int new_var;
s32 buf[7];
new_var = (pitch << 16) | (vol_l & 0xFFFF);
Expand All @@ -29,7 +29,7 @@ void snd_play_vag_stream_by_loc_ex_cb(s32 loc, s32 size, s32 vol_l, s32 vol_r, s
buf[3] = (flags << 16) | (vol_r & 0xFFFF);
buf[4] = voice;
buf[5] = channel;
buf[6] = a8;
buf[6] = request_word_6;
snd_send_iop_command_no_wait(0x2C, 0x1C, buf, id, cb_data);
}

Expand Down
2 changes: 1 addition & 1 deletion src/audio/streaming/snd_stream_safe_cd_get_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
extern s32 sceCdGetError();
s32 snd_stream_safe_cd_get_error(s32 arg0) __asm__("FUN_0012eef0");

s32 snd_stream_safe_cd_get_error(s32 arg0) {
s32 snd_stream_safe_cd_get_error(s32 unused_arg) {
if (snd_cd_stream_active == 0) {
return sceCdGetError();
}
Expand Down
4 changes: 2 additions & 2 deletions src/audio/streaming/snd_stream_safe_check_cd_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
extern s32 snd_send_iop_command_and_wait() __asm__("func_0012E548");
void snd_stream_safe_check_cd_idle(s32 arg0) __asm__("FUN_0012ed30");

void snd_stream_safe_check_cd_idle(s32 arg0) {
void snd_stream_safe_check_cd_idle(s32 payload_word) {
u8 sp_slot[0x10];
*(s32 *)sp_slot = arg0;
*(s32 *)sp_slot = payload_word;
snd_send_iop_command_and_wait(0x36, 4, sp_slot);
}

Expand Down
4 changes: 2 additions & 2 deletions src/audio/streaming/update_audio_stream_until_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ extern s32 music_update() __asm__("func_00216290");
extern s32 sceGsSyncV();
s16 update_audio_stream_until_idle(s32 arg0) __asm__("FUN_002168a8");

s16 update_audio_stream_until_idle(s32 arg0) {
if (arg0 != 0) {
s16 update_audio_stream_until_idle(s32 wait_for_completion) {
if (wait_for_completion != 0) {
if (music_stream_state.read_state != 0) {
do {
sceGsSyncV(0);
Expand Down
4 changes: 2 additions & 2 deletions src/audio/voices/snd_continue_all_sounds_in_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ extern s32 snd_send_iop_command_no_wait(s32 cmd, s32 size, void *buf, s32 a,
s32 b) __asm__("func_0012E6E0");
void snd_continue_all_sounds_in_group(s32 arg0) __asm__("FUN_0012e418");

void snd_continue_all_sounds_in_group(s32 arg0) {
void snd_continue_all_sounds_in_group(s32 payload_word) {
u8 sp_slot[0x10];
*(s32 *)(sp_slot + 0) = arg0;
*(s32 *)(sp_slot + 0) = payload_word;
snd_send_iop_command_no_wait(23, 4, sp_slot, 0, 0);
}

Expand Down
4 changes: 2 additions & 2 deletions src/audio/voices/snd_pause_all_sounds_in_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ extern s32 snd_send_iop_command_no_wait(s32 cmd, s32 size, void *buf, s32 a,
s32 b) __asm__("func_0012E6E0");
void snd_pause_all_sounds_in_group(s32 arg0) __asm__("FUN_0012e3e8");

void snd_pause_all_sounds_in_group(s32 arg0) {
void snd_pause_all_sounds_in_group(s32 payload_word) {
u8 sp_slot[0x10];
*(s32 *)(sp_slot + 0) = arg0;
*(s32 *)(sp_slot + 0) = payload_word;
snd_send_iop_command_no_wait(22, 4, sp_slot, 0, 0);
}

Expand Down
14 changes: 7 additions & 7 deletions src/audio/voices/snd_play_sound_vol_pan_pmpb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ extern s32 snd_send_iop_command_no_wait() __asm__("func_0012E6E0");
void snd_play_sound_vol_pan_pmpb(s32 a0, s32 a1, s32 a2, s32 a3, s32 a4, s32 a5, s32 a6,
s32 a7) __asm__("FUN_0012e308");

void snd_play_sound_vol_pan_pmpb(s32 a0, s32 a1, s32 a2, s32 a3, s32 a4, s32 a5, s32 callback_address, s32 callback_context_address) {
void snd_play_sound_vol_pan_pmpb(s32 request_word_0, s32 request_word_1, s32 request_word_2, s32 request_word_3, s32 request_word_4, s32 request_word_5, s32 callback_address, s32 callback_context_address) {
s32 buf[6];

buf[0] = a0;
buf[1] = a1;
buf[2] = a2;
buf[3] = a3;
buf[4] = a4;
buf[5] = a5;
buf[0] = request_word_0;
buf[1] = request_word_1;
buf[2] = request_word_2;
buf[3] = request_word_3;
buf[4] = request_word_4;
buf[5] = request_word_5;
snd_send_iop_command_no_wait(0x11, 0x18, buf, callback_address, callback_context_address);
}

Expand Down
4 changes: 2 additions & 2 deletions src/audio/voices/snd_set_sound_params_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extern s32 snd_send_iop_command_no_wait() __asm__("func_0012E6E0");
void snd_set_sound_params_cb(s32 a0, s32 a1, s32 a2, s32 a3, s32 a4, s32 a5, s32 a6,
s32 a7) __asm__("FUN_0012e4c0");

void snd_set_sound_params_cb(s32 request_word_0, s32 request_word_1, s32 request_word_2, s32 request_word_3, s32 request_word_4, s32 request_word_5, s32 a6, s32 a7) {
void snd_set_sound_params_cb(s32 request_word_0, s32 request_word_1, s32 request_word_2, s32 request_word_3, s32 request_word_4, s32 request_word_5, s32 callback_address, s32 callback_context_address) {
s32 buf[6];

buf[0] = request_word_0;
Expand All @@ -12,7 +12,7 @@ void snd_set_sound_params_cb(s32 request_word_0, s32 request_word_1, s32 request
buf[3] = request_word_3;
buf[4] = request_word_4;
buf[5] = request_word_5;
snd_send_iop_command_no_wait(0x21, 0x18, buf, a6, a7);
snd_send_iop_command_no_wait(0x21, 0x18, buf, callback_address, callback_context_address);
}

extern __typeof__(snd_set_sound_params_cb) func_0012E4C0 __attribute__((alias("FUN_0012e4c0")));
4 changes: 2 additions & 2 deletions src/audio/voices/snd_stop_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
extern s32 snd_send_iop_command_no_wait() __asm__("func_0012E6E0");
void snd_stop_sound(s32 arg0) __asm__("FUN_0012e368");

void snd_stop_sound(s32 arg0) {
void snd_stop_sound(s32 sound_handle) {
s32 buf[4];

buf[0] = arg0;
buf[0] = sound_handle;
snd_send_iop_command_no_wait(0x15, 4, buf, 0, 0);
}

Expand Down
4 changes: 2 additions & 2 deletions src/gameplay/entities/build_moby_bone_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ extern void multiply_matrix(s32, void *, s32) __asm__("FUN_001fa378");
extern void FUN_00210850(struct Moby *, s32, s32 *, s32);
void build_moby_bone_transform(struct Moby *arg0, s32 arg1, s32 arg2) __asm__("FUN_0020cca8");

void build_moby_bone_transform(struct Moby *moby, s32 arg1, s32 output_transform) {
void build_moby_bone_transform(struct Moby *moby, s32 bone_index, s32 output_transform) {
u8 sp_slot[0x40];
s32 sp40;
f32 scale;
s32 temp_16_22;

sp40 = arg1;
sp40 = bone_index;
scale = (*(f32 *)((u8 *)moby + 0x2C)) * 0.0009765625f;
FUN_00210850(moby, 1, &sp40, output_transform);
temp_16_22 = output_transform + 0x30;
Expand Down
4 changes: 2 additions & 2 deletions src/gameplay/entities/draw_moby_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ extern s32 vu1_add_g_sregister() __asm__("func_00233980");

void draw_moby_list(s32 arg0, s32 arg1) __asm__("FUN_0020d330");

void draw_moby_list(s32 arg0, s32 arg1) {
void draw_moby_list(s32 source_address, s32 arg1) {
vu1_add_g_sregister(0x47, (long)0x5360B);
flush_cache(0);
restore_moby_class_dists();
moby_anim_head = moby_proc(arg0, moby_anim_head, arg1, 0);
moby_anim_head = moby_proc(source_address, moby_anim_head, arg1, 0);
stash_moby_class_dists();
moby_anim_head -= 0x10;
}
Expand Down
4 changes: 2 additions & 2 deletions src/gameplay/missions/collect_mission_ids.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern MissionNode *D_001A2C20[];

int collect_mission_ids(int *out, int *mask, int *nums, int arg3) __asm__("FUN_0020bc00");

int collect_mission_ids(int *out, int *mask, int *nums, int arg3) {
int collect_mission_ids(int *out, int *mask, int *nums, int use_selected_ids) {
MissionNode *p = D_001A2C20[0];
int count = 0;
int all = 1;
Expand All @@ -36,7 +36,7 @@ int collect_mission_ids(int *out, int *mask, int *nums, int arg3) {
}
if (!(f & 2) && t != 0 && !((f & 1) && t == 2)) {
out[count] = p->id;
if (arg3 != 0) {
if (use_selected_ids != 0) {
out[count] = (p->status == 2) ? 0x523E : p->ids[p->sel];
}
if (mask != 0 && p->status == 2) {
Expand Down
4 changes: 2 additions & 2 deletions src/gameplay/missions/fun_0020be68.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Ported from rac1-decomp (src/game/missionfunc.c, func_0020CCB8). */
#include "rnc/gameplay/state/item_state.h"
int FUN_0020be68(int arg0) {
return item_available[arg0] != 0;
int FUN_0020be68(int item_index) {
return item_available[item_index] != 0;
}

extern __typeof__(FUN_0020be68) func_0020BE68 __attribute__((alias("FUN_0020be68")));
2 changes: 1 addition & 1 deletion src/gameplay/state/transition_default_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extern s32 draw_ties_1() __asm__("func_002358C8");
extern s32 light_ties() __asm__("func_00237370");
void transition_default_draw(s32 *arg0) __asm__("FUN_001eb410");

void transition_default_draw(s32 *arg0) {
void transition_default_draw(s32 *unused_parameter) {
s32 n;

if (D_0016045C == 0 || D_0016045C->unk4 != 0) {
Expand Down
Loading
Loading