From 2ccc0f5edd5f8e61bd0760f30b2d66f2d977b2bf Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Sun, 18 Nov 2018 20:03:35 +0100 Subject: Added "const" qualifier to some functions. "cdrom:\ and ;1" are automatically inserted into file name, in order to save memory space. Some minor optimizations. --- Source/Sfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Sfx.c') diff --git a/Source/Sfx.c b/Source/Sfx.c index a823c43..ded505e 100644 --- a/Source/Sfx.c +++ b/Source/Sfx.c @@ -31,7 +31,7 @@ void SfxPlaySound(SsVag* sound) } } -bool SfxUploadSound_Ex(char* file_path, SsVag* vag, uint8_t voiceIndex) +bool SfxUploadSound_Ex(const char* file_path, SsVag* vag, uint8_t voiceIndex) { #ifdef PSXSDK_DEBUG static size_t SPUBytesUsed; @@ -86,7 +86,7 @@ bool SfxUploadSound_Ex(char* file_path, SsVag* vag, uint8_t voiceIndex) return true; } -bool SfxUploadSound(char* file_path, SsVag* vag) +bool SfxUploadSound(const char* file_path, SsVag* vag) { bool success = false; uint8_t i; -- cgit v1.2.3