Skip to content

Commit

Permalink
show date
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Dec 16, 2024
1 parent cd47aa6 commit 7c9a666
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/saves.c
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,7 @@ int get_save_details(const save_entry_t* save, char **details)
if ((db = open_sqlite_db(save->path)) == NULL)
return 0;

char* query = sqlite3_mprintf("SELECT sub_title, detail, free_blocks, size_kib, user_id, account_id, main_title FROM savedata "
char* query = sqlite3_mprintf("SELECT sub_title, detail, free_blocks, size_kib, user_id, account_id, main_title, datetime(mtime) FROM savedata "
" WHERE title_id = %Q AND dir_name = %Q", save->title_id, save->dir_name);

if (sqlite3_prepare_v2(db, query, -1, &res, NULL) != SQLITE_OK || sqlite3_step(res) != SQLITE_ROW)
Expand All @@ -2606,6 +2606,7 @@ int get_save_details(const save_entry_t* save, char **details)
"Title: %s\n"
"Subtitle: %s\n"
"Detail: %s\n"
"Date: %s\n"
"Dir Name: %s\n"
"Blocks: %d (%d Free)\n"
"Size: %d Kb\n"
Expand All @@ -2615,6 +2616,7 @@ int get_save_details(const save_entry_t* save, char **details)
sqlite3_column_text(res, 6),
sqlite3_column_text(res, 0),
sqlite3_column_text(res, 1),
sqlite3_column_text(res, 7),
save->dir_name,
save->blocks, sqlite3_column_int(res, 2),
sqlite3_column_int(res, 3),
Expand Down

0 comments on commit 7c9a666

Please sign in to comment.