diff options
author | Arisotura <thetotalworm@gmail.com> | 2021-04-26 16:43:25 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2021-04-26 16:43:25 +0200 |
commit | 6691c6903bfd25a983457e241f0099e421012715 (patch) | |
tree | c07e416d4bd4af20e12647153a310678d4f3a5f2 /src | |
parent | 3bb78e4f1d11fcff2f7a7903ac1aea782dcb16d4 (diff) |
asfdasdas you'd better not give me shit now
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/Util_ROM.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/Util_ROM.cpp b/src/frontend/Util_ROM.cpp index e7f2659..8d691b3 100644 --- a/src/frontend/Util_ROM.cpp +++ b/src/frontend/Util_ROM.cpp @@ -526,7 +526,7 @@ int Reset() char ext[5] = {0}; int _len = strlen(ROMPath[ROMSlot_NDS]); strncpy(ext, ROMPath[ROMSlot_NDS] + _len - 4, 4); - if(!strnicmp(ext, ".nds", 4) || !strnicmp(ext, ".srl", 4) || !strnicmp(ext, ".dsi", 4)) + if(!strncasecmp(ext, ".nds", 4) || !strncasecmp(ext, ".srl", 4) || !strncasecmp(ext, ".dsi", 4)) { SetupSRAMPath(0); if (!NDS::LoadROM(ROMPath[ROMSlot_NDS], SRAMPath[ROMSlot_NDS], directboot)) @@ -563,7 +563,7 @@ int Reset() char ext[5] = {0}; int _len = strlen(ROMPath[ROMSlot_GBA]); strncpy(ext, ROMPath[ROMSlot_GBA] + _len - 4, 4); - if(!strnicmp(ext, ".gba", 4)) + if(!strncasecmp(ext, ".gba", 4)) { SetupSRAMPath(1); if (!NDS::LoadGBAROM(ROMPath[ROMSlot_GBA], SRAMPath[ROMSlot_GBA])) @@ -619,7 +619,7 @@ void GetSavestateName(int slot, char* filename, int len) char ext[5] = {0}; int _len = strlen(ROMPath[ROMSlot_NDS]); strncpy(ext, ROMPath[ROMSlot_NDS] + _len - 4, 4); - if(!strnicmp(ext, ".nds", 4) || !strnicmp(ext, ".srl", 4) || !strnicmp(ext, ".dsi", 4)) + if(!strncasecmp(ext, ".nds", 4) || !strncasecmp(ext, ".srl", 4) || !strncasecmp(ext, ".dsi", 4)) rompath = ROMPath[ROMSlot_NDS]; else rompath = SRAMPath[ROMSlot_NDS]; // If archive, construct ssname from sram file |