aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNebuleon Fumika2013-04-09 23:14:04 -0400
committerNebuleon Fumika2013-04-09 23:14:04 -0400
commit53d2f1f6cd147bdb4c7dbb801363e9d5390d5f6b (patch)
tree95070a68db7974b3c3787c8955d9afadcd225fbb
parent700a1535d6ed8a5ca9dde59c0887e03ae9dabf2b (diff)
downloadsnesemu-53d2f1f6cd147bdb4c7dbb801363e9d5390d5f6b.tar.gz
snesemu-53d2f1f6cd147bdb4c7dbb801363e9d5390d5f6b.tar.bz2
snesemu-53d2f1f6cd147bdb4c7dbb801363e9d5390d5f6b.zip
Add the year to the date displayed in a saved state's screenshot.
Based on TempGBA commit 0adaf3c332453679cc0a2feee9e87d5a4dc3c771.
-rw-r--r--source/nds/gui.c4
1 files 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);