summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2019-03-31 12:37:28 -0700
committerMike Pavone <pavone@retrodev.com>2019-03-31 12:37:28 -0700
commit29c09f60a90009ef4f44059ff33781d2eacb4478 (patch)
tree1a6e4b0f442d60404eceb127901fd5904fb4ca8a /util.c
parenta1cb391a04823815561329aa3171c491a8bffad6 (diff)
Include ROM DB in library binary for libretro target
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util.c b/util.c
index 26dfc9c..4826959 100644
--- a/util.c
+++ b/util.c
@@ -857,6 +857,7 @@ void sort_dir_list(dir_entry *list, size_t num_entries)
#ifdef __ANDROID__
#include <SDL.h>
+#ifndef IS_LIB
char *read_bundled_file(char *name, uint32_t *sizeret)
{
SDL_RWops *rw = SDL_RWFromFile(name, "rb");
@@ -884,6 +885,7 @@ char *read_bundled_file(char *name, uint32_t *sizeret)
SDL_RWclose(rw);
return ret;
}
+#endif
char const *get_config_dir()
{
@@ -897,6 +899,7 @@ char const *get_userdata_dir()
#else
+#ifndef IS_LIB
char *read_bundled_file(char *name, uint32_t *sizeret)
{
#ifdef DATA_PATH
@@ -940,7 +943,7 @@ char *read_bundled_file(char *name, uint32_t *sizeret)
fclose(f);
return ret;
}
-
+#endif
#ifdef _WIN32
char const *get_userdata_dir()