mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(task_database_cue) more ps1 scanning fixes.
This commit is contained in:
parent
87788f0ffb
commit
748a913a6d
@ -145,7 +145,7 @@ static int detect_ps1_game_sub(const char *track_path,
|
||||
{
|
||||
uint8_t* tmp;
|
||||
uint8_t* boot_file;
|
||||
int i, skip, frame_size, is_mode1, cd_sector;
|
||||
int skip, frame_size, is_mode1, cd_sector;
|
||||
uint8_t buffer[2048 * 2] = {0};
|
||||
RFILE *fp = filestream_open(track_path, RFILE_MODE_READ, -1);
|
||||
if (!fp)
|
||||
@ -219,14 +219,18 @@ static int detect_ps1_game_sub(const char *track_path,
|
||||
*game_id++ = toupper(*tmp++);
|
||||
*game_id++ = toupper(*tmp++);
|
||||
*game_id++ = toupper(*tmp++);
|
||||
*game_id++ = '-';
|
||||
tmp++;
|
||||
for(i = 0; i < 5; i++)
|
||||
*game_id++ = '-';
|
||||
|
||||
if(!isalnum(*tmp))
|
||||
tmp++;
|
||||
|
||||
while(isalnum(*tmp))
|
||||
{
|
||||
*game_id++ = *tmp++;
|
||||
if(*tmp == '.')
|
||||
tmp++;
|
||||
*game_id++ = *tmp++;
|
||||
}
|
||||
|
||||
*game_id = 0;
|
||||
|
||||
filestream_close(fp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user