From bdcc7c81ce59a45b60dc44a20e5272b17e65b2cb Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sat, 26 Sep 2015 00:44:47 +0100 Subject: [PATCH] (PS1) convert serial to uppercase. --- tasks/task_database_cue.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tasks/task_database_cue.c b/tasks/task_database_cue.c index 31e466bb36..96746f6f4f 100644 --- a/tasks/task_database_cue.c +++ b/tasks/task_database_cue.c @@ -15,6 +15,7 @@ */ #include +#include #include #include @@ -188,10 +189,10 @@ static int detect_ps1_game_sub(const char *track_path, char *game_id, int sub_ch else tmp++; - *game_id++ = *tmp++; - *game_id++ = *tmp++; - *game_id++ = *tmp++; - *game_id++ = *tmp++; + *game_id++ = toupper(*tmp++); + *game_id++ = toupper(*tmp++); + *game_id++ = toupper(*tmp++); + *game_id++ = toupper(*tmp++); *game_id++ = '-'; tmp++; *game_id++ = *tmp++;