mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 14:54:10 +00:00
Merge pull request #4377 from fr500/master
allow serial scanner to match PBP
This commit is contained in:
commit
a88b5bceb6
@ -221,6 +221,8 @@ uint32_t msg_hash_calculate(const char *s)
|
||||
#define HASH_EXTENSION_ISO 0x0b8880d0U
|
||||
#define HASH_EXTENSION_ISO_UPPERCASE 0x0b87f470U
|
||||
#define HASH_EXTENSION_LUTRO 0x0fe37b7bU
|
||||
#define HASH_EXTENSION_PBP 0x0b889c67U
|
||||
#define HASH_EXTENSION_PBP_UPPERCASE 0x0b881007U
|
||||
|
||||
enum msg_file_type msg_hash_to_file_type(uint32_t hash)
|
||||
{
|
||||
@ -357,6 +359,9 @@ enum msg_file_type msg_hash_to_file_type(uint32_t hash)
|
||||
case HASH_EXTENSION_ISO:
|
||||
case HASH_EXTENSION_ISO_UPPERCASE:
|
||||
return FILE_TYPE_ISO;
|
||||
case HASH_EXTENSION_PBP:
|
||||
case HASH_EXTENSION_PBP_UPPERCASE:
|
||||
return FILE_TYPE_PBP;
|
||||
case HASH_EXTENSION_LUTRO:
|
||||
return FILE_TYPE_LUTRO;
|
||||
default:
|
||||
|
@ -123,6 +123,7 @@ enum msg_file_type
|
||||
|
||||
FILE_TYPE_CUE,
|
||||
FILE_TYPE_ISO,
|
||||
FILE_TYPE_PBP,
|
||||
FILE_TYPE_LUTRO,
|
||||
|
||||
FILE_TYPE_DIRECT_LOAD,
|
||||
|
@ -215,6 +215,7 @@ static int task_database_iterate_playlist(
|
||||
database_info_set_type(db, DATABASE_TYPE_SERIAL_LOOKUP);
|
||||
break;
|
||||
case FILE_TYPE_ISO:
|
||||
case FILE_TYPE_PBP:
|
||||
db_state->serial[0] = '\0';
|
||||
iso_get_serial(db_state, db, name, db_state->serial);
|
||||
database_info_set_type(db, DATABASE_TYPE_SERIAL_LOOKUP);
|
||||
|
Loading…
x
Reference in New Issue
Block a user