From b82ddd6130ef3c27edd65592947ef282ae55a132 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 22 Jan 2015 21:48:56 +0100 Subject: [PATCH] (libretro-build-database.sh) Update --- libretro-build-database.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/libretro-build-database.sh b/libretro-build-database.sh index 268d8979..010999c1 100755 --- a/libretro-build-database.sh +++ b/libretro-build-database.sh @@ -69,13 +69,13 @@ build_libretro_database() { fi #Check if meta magazine DAT is there - if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazines/edge/${1}.dat" ]; then - COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazines/edge/${1}.dat"' + if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge/${1}.dat" ]; then + COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge/${1}.dat"' fi #Check if meta franchise DAT is there - if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/franchises/${1}.dat" ]; then - COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/franchises/${1}.dat"' + if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/franchise/${1}.dat" ]; then + COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/franchise/${1}.dat"' fi #Check if meta ESRB DAT is there @@ -88,6 +88,21 @@ build_libretro_database() { COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/publisher/${1}.dat"' fi + #Check if meta releasemonth DAT is there + if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/releasemonth/${1}.dat" ]; then + COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/releasemonth/${1}.dat"' + fi + + #Check if meta releaseyear DAT is there + if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/releaseyear/${1}.dat" ]; then + COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/releaseyear/${1}.dat"' + fi + + #Check if meta origin DAT is there + if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/origin/${1}.dat" ]; then + COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/origin/${1}.dat"' + fi + eval ${COMMAND} if [ -f ${DBFILE} ]; then mv ${DBFILE} "${RDB_DIR}/${1}.rdb"