mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Fix #455
This commit is contained in:
parent
a04c2beb3c
commit
10ec95b8fe
@ -175,7 +175,8 @@ u32 InjectGbaVcSavegameBuffered(const char* path, const char* path_vcsave, void*
|
|||||||
// basic sanity checks for path_vcsave
|
// basic sanity checks for path_vcsave
|
||||||
FILINFO fno;
|
FILINFO fno;
|
||||||
char* ext = strrchr(path_vcsave, '.');
|
char* ext = strrchr(path_vcsave, '.');
|
||||||
if (!ext || ((strncasecmp(ext+1, "sav", 4) != 0) && (strncasecmp(ext+1, "srm", 4) != 0))) return 1; // bad extension
|
if (!ext || ((strncasecmp(ext+1, "sav", 4) != 0) && (strncasecmp(ext+1, "srm", 4) != 0) &&
|
||||||
|
(strncasecmp(ext+1, "SaveRAM", 8) != 0))) return 1; // bad extension
|
||||||
if ((fvx_stat(path_vcsave, &fno) != FR_OK) || !GBASAVE_VALID(fno.fsize))
|
if ((fvx_stat(path_vcsave, &fno) != FR_OK) || !GBASAVE_VALID(fno.fsize))
|
||||||
return 1; // bad size
|
return 1; // bad size
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user