Improved success rate of Serial scanning on PS1 by adding support for the xx.xxx format (#14256)

Co-authored-by: papa <papa>
This commit is contained in:
kikmon 2022-07-31 01:22:04 +09:00 committed by GitHub
parent 19e4b8c0ca
commit 44f5cb2935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,14 @@ int detect_ps1_game(intfstream_t *fd, char *game_id, const char *filename)
raw_game_id[8] = raw_game_id[9]; raw_game_id[8] = raw_game_id[9];
raw_game_id[9] = raw_game_id[10]; raw_game_id[9] = raw_game_id[10];
} }
/* A few games have their serial in the form of xx.xxx */
/* Tanaka Torahiko no Ultra-ryuu Shougi - Ibisha Anaguma-hen (Japan) -> SLPS_02.261 */
else if (string_is_equal_fast(&raw_game_id[7], ".", 1))
{
raw_game_id[7] = raw_game_id[8];
raw_game_id[8] = raw_game_id[9];
raw_game_id[9] = raw_game_id[10];
}
raw_game_id[10] = '\0'; raw_game_id[10] = '\0';
string_remove_all_whitespace(game_id, raw_game_id); string_remove_all_whitespace(game_id, raw_game_id);