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/Gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Gfx.c') diff --git a/Source/Gfx.c b/Source/Gfx.c index bc47ae9..a0bf282 100644 --- a/Source/Gfx.c +++ b/Source/Gfx.c @@ -536,7 +536,7 @@ bool GfxIsGPUBusy(void) * false if an error happened, true otherwise. * * **********************************************************************/ -bool GfxSpriteFromFile(char* fname, GsSprite* spr) +bool GfxSpriteFromFile(const char* fname, GsSprite* spr) { GsImage gsi; @@ -572,7 +572,7 @@ bool GfxSpriteFromFile(char* fname, GsSprite* spr) * false if an error happened, true otherwise. * * **********************************************************************/ -bool GfxCLUTFromFile(char* fname) +bool GfxCLUTFromFile(const char* fname) { GsImage gsi; -- cgit v1.2.3