mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
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:
parent
19e4b8c0ca
commit
44f5cb2935
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user