Skip to content

Commit

Permalink
Merge pull request #561 from cylonicboom/rename-func0f0d5484
Browse files Browse the repository at this point in the history
func0f0d5484 -> savebufferWriteData
  • Loading branch information
fgsfdsfgs authored Dec 20, 2024
2 parents 26b3b91 + 701c854 commit d5ae464
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/game/gamefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ void gamefileGetOverview(char *arg0, char *name, u8 *stage, u8 *difficulty, u32
{
struct savebuffer buffer;

func0f0d5484(&buffer, arg0, 15);
savebufferWriteData(&buffer, arg0, 15);
savebufferReadString(&buffer, name, false);

*stage = savebufferReadBits(&buffer, 5);
Expand Down
4 changes: 2 additions & 2 deletions src/game/mplayer/mplayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3610,7 +3610,7 @@ void mpplayerfileGetOverview(char *arg0, char *name, u32 *playtime)
{
struct savebuffer buffer;

func0f0d5484(&buffer, arg0, 15);
savebufferWriteData(&buffer, arg0, 15);

savebufferReadString(&buffer, name, 0);
*playtime = savebufferReadBits(&buffer, 28);
Expand Down Expand Up @@ -3974,7 +3974,7 @@ void mpsetupfileGetOverview(char *arg0, char *filename, u16 *numsims, u16 *stage
{
struct savebuffer buffer;

func0f0d5484(&buffer, arg0, 15);
savebufferWriteData(&buffer, arg0, 15);

savebufferReadString(&buffer, filename, 0);

Expand Down
6 changes: 3 additions & 3 deletions src/game/savebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void savebufferClear(struct savebuffer *buffer)
}
}

void func0f0d5484(struct savebuffer *buffer, u8 *data, u8 len)
void savebufferWriteData(struct savebuffer *buffer, u8 *data, u8 len)
{
s32 i;

Expand Down Expand Up @@ -536,7 +536,7 @@ void func0f0d564c(u8 *data, char *dst, bool addlinebreak)
{
struct savebuffer buffer;

func0f0d5484(&buffer, data, 10);
savebufferWriteData(&buffer, data, 10);
savebufferReadString(&buffer, dst, addlinebreak);
}

Expand All @@ -547,7 +547,7 @@ void func0f0d5690(u8 *dst, char *src)
bool done = false;
s32 i;

func0f0d5484(&buffer, dst, 10);
savebufferWriteData(&buffer, dst, 10);

for (i = 0; i < 10; i++) {
if (!done) {
Expand Down
2 changes: 1 addition & 1 deletion src/include/game/savebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void savebufferOr(struct savebuffer *buffer, u32 arg1, s32 arg2);
void savebufferWriteBits(struct savebuffer *buffer, u32 value, s32 numbits, u8 *dst);
u32 savebufferReadBits(struct savebuffer *buffer, s32 offset);
void savebufferClear(struct savebuffer *buffer);
void func0f0d5484(struct savebuffer *buffer, u8 *data, u8 len);
void savebufferWriteData(struct savebuffer *buffer, u8 *data, u8 len);
void func0f0d54c4(struct savebuffer *buffer);
void savebufferReadString(struct savebuffer *buffer, char *dst, bool addlinebreak);
void func0f0d55a4(struct savebuffer *buffer, char *src);
Expand Down

0 comments on commit d5ae464

Please sign in to comment.