mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-22 23:49:50 +00:00
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:
parent
aa1d47ad0f
commit
4d8283a460
@ -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"))
|
||||
{
|
||||
|
@ -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"
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user