(PS1) convert serial to uppercase.

This commit is contained in:
aliaspider 2015-09-26 00:44:47 +01:00
parent e280ff2767
commit bdcc7c81ce

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++;