From 6680dc0c18c0e486a7dc0a975a0909b5ee4b81db Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 8 Oct 2018 15:32:32 -0600 Subject: [PATCH] Add software version to GBA ROM dump's filename --- arm9/source/driveMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arm9/source/driveMenu.cpp b/arm9/source/driveMenu.cpp index e7a0b96..a50409c 100644 --- a/arm9/source/driveMenu.cpp +++ b/arm9/source/driveMenu.cpp @@ -90,8 +90,9 @@ void gbaCartDump(void) { for (int i = 0; i < 2; i++) { gbaHeaderMakerCode[i] = *(char*)(0x080000B0+i); } + u8 gbaHeaderSoftwareVersion = *(u8*)(0x080000BC); char destPath[256]; - snprintf(destPath, sizeof(destPath), "fat:/gm9i/out/%s_%s_%s.gba", gbaHeaderGameTitle, gbaHeaderGameCode, gbaHeaderMakerCode); + snprintf(destPath, sizeof(destPath), "fat:/gm9i/out/%s_%s%s_%x.gba", gbaHeaderGameTitle, gbaHeaderGameCode, gbaHeaderMakerCode, gbaHeaderSoftwareVersion); consoleClear(); printf("Dumping...\n"); printf("Do not remove the GBA cart.\n");