From 701c854cedaa4190c508ab0b131b919e7ade94ad Mon Sep 17 00:00:00 2001 From: Catherine Reprobate Date: Sun, 15 Dec 2024 12:35:04 -0800 Subject: [PATCH] func0f0d5484 -> savebufferWriteData --- src/game/gamefile.c | 2 +- src/game/mplayer/mplayer.c | 4 ++-- src/game/savebuffer.c | 6 +++--- src/include/game/savebuffer.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/game/gamefile.c b/src/game/gamefile.c index 3f334ace9..e17411d6b 100644 --- a/src/game/gamefile.c +++ b/src/game/gamefile.c @@ -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); diff --git a/src/game/mplayer/mplayer.c b/src/game/mplayer/mplayer.c index 4d72e22a7..df78ced21 100644 --- a/src/game/mplayer/mplayer.c +++ b/src/game/mplayer/mplayer.c @@ -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); @@ -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); diff --git a/src/game/savebuffer.c b/src/game/savebuffer.c index 48255d723..f9d4705fd 100644 --- a/src/game/savebuffer.c +++ b/src/game/savebuffer.c @@ -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; @@ -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); } @@ -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) { diff --git a/src/include/game/savebuffer.h b/src/include/game/savebuffer.h index 3975a51c0..9529248ce 100644 --- a/src/include/game/savebuffer.h +++ b/src/include/game/savebuffer.h @@ -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);