Fix some unrelated files being detected as FIRMs due to uncleared FatFs strings

This commit is contained in:
Aurora 2016-09-28 15:37:58 +02:00
parent ad60eac6ef
commit 5f93724845

View File

@ -172,7 +172,7 @@ u32 firmRead(void *dest, u32 firmType)
while(f_readdir(&dir, &info) == FR_OK && info.fname[0] != 0) while(f_readdir(&dir, &info) == FR_OK && info.fname[0] != 0)
{ {
//Not a cxi //Not a cxi
if(info.fname[9] != 'a') continue; if(info.fname[9] != 'a' || strlen(info.fname) != 12) continue;
//Convert the .app name to an integer //Convert the .app name to an integer
u32 tempVersion = 0; u32 tempVersion = 0;