Skip to content

Commit

Permalink
Fix for scanning PSP ISOs (and probably few others)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb committed May 19, 2024
1 parent 741e7f8 commit 13db0c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/task_database.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static int intfstream_get_serial(intfstream_t *fd, char *serial, size_t serial_l
if (detect_system(fd, &system_name, filename) >= 1)
{
size_t system_len = strlen(system_name);
if (string_starts_with_size(system_name, "Sony", system_len))
if (string_starts_with_size(system_name, "Sony", STRLEN_CONST("Sony")))
{
if (string_is_equal_fast(system_name, "Sony - PlayStation Portable", system_len))
{
Expand All @@ -215,7 +215,7 @@ static int intfstream_get_serial(intfstream_t *fd, char *serial, size_t serial_l
return 1;
}
}
else if (string_starts_with_size(system_name, "Nintendo", system_len))
else if (string_starts_with_size(system_name, "Nintendo", STRLEN_CONST("Nintendo")))
{
if (string_is_equal_fast(system_name, "Nintendo - GameCube", system_len))
{
Expand All @@ -228,7 +228,7 @@ static int intfstream_get_serial(intfstream_t *fd, char *serial, size_t serial_l
return 1;
}
}
else if (string_starts_with_size(system_name, "Sega", system_len))
else if (string_starts_with_size(system_name, "Sega", STRLEN_CONST("Sega")))
{
if (string_is_equal_fast(system_name, "Sega - Mega-CD - Sega CD", system_len))
{
Expand Down

0 comments on commit 13db0c7

Please sign in to comment.