Skip to content

Commit 4d8283a

Browse files
authored
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
1 parent aa1d47a commit 4d8283a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

database_info.c

+3
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,11 @@ static int database_cursor_iterate(libretrodb_cursor_t *cur,
515515
}
516516
else if (string_is_equal(str, "rom_name"))
517517
{
518+
/* rom_name is not used anywhere in codebase, but is frequently added to DB */
519+
#if 0
518520
if (!string_is_empty(val_string))
519521
db_info->rom_name = strdup(val_string);
522+
#endif
520523
}
521524
else if (string_is_equal(str, "name"))
522525
{

libretro-common/playlists/label_sanitization.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
#include <string/stdstring.h>
2727
#include <string.h>
2828

29-
#define DISC_STRINGS_LENGTH 3
29+
#define DISC_STRINGS_LENGTH 5
3030
#define REGION_STRINGS_LENGTH 20
3131

3232
const char *disc_strings[DISC_STRINGS_LENGTH] = {
3333
"(CD",
3434
"(Disc",
35-
"(Disk"
35+
"(Disk",
36+
"(Side",
37+
"(Tape"
3638
};
3739

3840
/*

0 commit comments

Comments
 (0)