Merge pull request #2170 from aliaspider/master

(PS1) convert serial to uppercase.
This commit is contained in:
Twinaphex 2015-09-26 01:46:16 +02:00
commit 8fb027a304

View File

@ -15,6 +15,7 @@
*/
#include <errno.h>
#include <ctype.h>
#include <compat/strcasestr.h>
#include <compat/strl.h>
@ -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++;