Ifdef LibretroDB code

This commit is contained in:
twinaphex 2015-01-22 03:58:04 +01:00
parent dfd8d55f7a
commit ff570dcdf4
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
HAVE_LIBRETRODB = 1
ifeq ($(HAVE_LIBRETRODB), 1)
DEFINES += -DHAVE_LIBRETRODB
endif
ifeq ($(HAVE_FBO), 1)
DEFINES += -DHAVE_FBO
endif
@ -165,11 +171,13 @@ OBJ += frontend/frontend.o \
# LibretroDB
ifeq ($(HAVE_LIBRETRODB), 1)
OBJ += libretrodb/bintree.o \
libretrodb/rarchdb.o \
libretrodb/query.o \
libretrodb/rmsgpack.o \
libretrodb/rmsgpack_dom.o
endif
# Miscellaneous

View File

@ -14,6 +14,8 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#define HAVE_LIBRETRODB
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
#define HAVE_SHADERS
#endif
@ -805,11 +807,13 @@ XML
/*============================================================
LIBRETRODB
============================================================ */
#ifdef HAVE_LIBRETRODB
#include "../libretrodb/bintree.c"
#include "../libretrodb/rarchdb.c"
#include "../libretrodb/rmsgpack.c"
#include "../libretrodb/rmsgpack_dom.c"
#include "../libretrodb/query.c"
#endif
#ifdef __cplusplus
}

View File

@ -3353,11 +3353,13 @@ static bool setting_data_append_list_main_menu_options(
subgroup_info.name);
#endif
#ifdef HAVE_LIBRETRODB
CONFIG_ACTION(
"database_manager_list",
"Database Manager",
group_info.name,
subgroup_info.name);
#endif
if (g_settings.history_list_enable)
{
@ -5832,6 +5834,7 @@ static bool setting_data_append_list_path_options(
list_info,
SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR | SD_FLAG_BROWSER_ACTION);
#ifdef HAVE_LIBRETRODB
CONFIG_DIR(
g_settings.content_database,
"content_database_path",
@ -5846,6 +5849,7 @@ static bool setting_data_append_list_path_options(
list,
list_info,
SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR | SD_FLAG_BROWSER_ACTION);
#endif
CONFIG_DIR(
g_settings.cheat_database,