From 1846a712659ed31357e8ae795055dace0bdd951d Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sun, 25 Apr 2021 00:48:02 +0200 Subject: Cart refactor (#1073) complete cart-interface refactor, will make this code a lot easier to deal with --- src/frontend/Util_ROM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/Util_ROM.cpp') diff --git a/src/frontend/Util_ROM.cpp b/src/frontend/Util_ROM.cpp index b5e8a05..40552e2 100644 --- a/src/frontend/Util_ROM.cpp +++ b/src/frontend/Util_ROM.cpp @@ -561,7 +561,7 @@ int Reset() if (ROMPath[ROMSlot_GBA][0] != '\0') { char ext[5] = {0}; int _len = strlen(ROMPath[ROMSlot_GBA]); - strncpy(ext, ROMPath[ROMSlot_NDS] + _len - 4, 4); + strncpy(ext, ROMPath[ROMSlot_GBA] + _len - 4, 4); if(!strncmp(ext, ".gba", 4)) { -- cgit v1.2.3