Firmware: fix firmware settings file path generation.

This commit is contained in:
luigi__ 2011-08-12 13:49:03 +00:00
parent 312628821f
commit 71a766b157
1 changed files with 1 additions and 4 deletions

View File

@ -566,10 +566,7 @@ bool CFIRMWARE::load()
INFO(" * ARM7 unpacked size: 0x%08X (%i) bytes\n", size7, size7); INFO(" * ARM7 unpacked size: 0x%08X (%i) bytes\n", size7, size7);
} }
PathInfo path; snprintf(MMU.fw.userfile, MAX_PATH, "%sFirmware%cfirmware.dfc", path.pathToModule, DIRECTORY_DELIMITER_CHAR);
path.init(CommonSettings.Firmware);
path.getpathnoext(path.FIRMWARE, &MMU.fw.userfile[0]);
strcat(MMU.fw.userfile, ".dfc"); // DeSmuME Firmware Config
fclose(fp); fclose(fp);
fp = fopen(MMU.fw.userfile, "rb"); fp = fopen(MMU.fw.userfile, "rb");