Firmware/CLI: list short file name and file size in ls command; print file name when saving SRAM
This commit is contained in:
parent
ce23ff6954
commit
fee97e5016
@ -269,7 +269,7 @@ static void cmd_show_directory(void) {
|
|||||||
strlwr((char *)name);
|
strlwr((char *)name);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s",name);
|
printf("%s [%s] (%ld)",finfo.lfname, finfo.fname, finfo.fsize);
|
||||||
|
|
||||||
/* Directory indicator (Unix-style) */
|
/* Directory indicator (Unix-style) */
|
||||||
if (finfo.fattrib & AM_DIR)
|
if (finfo.fattrib & AM_DIR)
|
||||||
|
|||||||
@ -123,7 +123,7 @@ void snes_main_loop() {
|
|||||||
samecount++;
|
samecount++;
|
||||||
}
|
}
|
||||||
if(diffcount>=1 && samecount==5) {
|
if(diffcount>=1 && samecount==5) {
|
||||||
printf("SaveRAM CRC: 0x%04lx; saving\n", saveram_crc);
|
printf("SaveRAM CRC: 0x%04lx; saving %s\n", saveram_crc, file_lfn);
|
||||||
writeled(1);
|
writeled(1);
|
||||||
save_sram(file_lfn, romprops.ramsize_bytes, SRAM_SAVE_ADDR);
|
save_sram(file_lfn, romprops.ramsize_bytes, SRAM_SAVE_ADDR);
|
||||||
writeled(0);
|
writeled(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user