From 53d2f1f6cd147bdb4c7dbb801363e9d5390d5f6b Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Tue, 9 Apr 2013 23:14:04 -0400 Subject: Add the year to the date displayed in a saved state's screenshot. Based on TempGBA commit 0adaf3c332453679cc0a2feee9e87d5a4dc3c771. --- source/nds/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/nds/gui.c b/source/nds/gui.c index cfddb93..7c76cff 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -1707,8 +1707,8 @@ int save_state(char* file, void* screen) n = ftell(fp); ds2_getTime(&time); - sprintf(str, "%02d-%02d %02d:%02d:%02d", - time.month, time.day, time.hours, time.minutes, time.seconds); + sprintf(str, "%04d-%02d-%02d %02d:%02d:%02d", + time.year + 2000, time.month, time.day, time.hours, time.minutes, time.seconds); // A black outline in all four directions... PRINT_STRING_BG(screen, str, COLOR_BLACK, 0x8000, 0, 1); -- cgit v1.2.3