Firmware/CLI: list short file name and file size in ls command; print file name when saving SRAM

This commit is contained in:
Maximilian Rehkopf 2012-11-07 09:31:33 +01:00
parent ce23ff6954
commit fee97e5016
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ static void cmd_show_directory(void) {
strlwr((char *)name);
}
printf("%s",name);
printf("%s [%s] (%ld)",finfo.lfname, finfo.fname, finfo.fsize);
/* Directory indicator (Unix-style) */
if (finfo.fattrib & AM_DIR)

View File

@ -123,7 +123,7 @@ void snes_main_loop() {
samecount++;
}
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);
save_sram(file_lfn, romprops.ramsize_bytes, SRAM_SAVE_ADDR);
writeled(0);