Minor improvements for db / playlist handling (#16060)

Do not load rom_name as nothing is using it (but it does occupy memory)
Add two more media index options for label sanitization
This commit is contained in:
zoltanvb 2023-12-30 20:45:36 +01:00 committed by GitHub
parent aa1d47ad0f
commit 4d8283a460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -515,8 +515,11 @@ static int database_cursor_iterate(libretrodb_cursor_t *cur,
}
else if (string_is_equal(str, "rom_name"))
{
/* rom_name is not used anywhere in codebase, but is frequently added to DB */
#if 0
if (!string_is_empty(val_string))
db_info->rom_name = strdup(val_string);
#endif
}
else if (string_is_equal(str, "name"))
{

View File

@ -26,13 +26,15 @@
#include <string/stdstring.h>
#include <string.h>
#define DISC_STRINGS_LENGTH 3
#define DISC_STRINGS_LENGTH 5
#define REGION_STRINGS_LENGTH 20
const char *disc_strings[DISC_STRINGS_LENGTH] = {
"(CD",
"(Disc",
"(Disk"
"(Disk",
"(Side",
"(Tape"
};
/*