summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/physfstools.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/physfstools.cpp b/src/utils/physfstools.cpp
index 325f7cddc..d44a37666 100644
--- a/src/utils/physfstools.cpp
+++ b/src/utils/physfstools.cpp
@@ -33,13 +33,17 @@ const char *dirSeparator = nullptr;
namespace PhysFs
{
+#if defined(__native_client__)
void init(const char *const name)
{
-#if defined(__native_client__)
if (!PHYSFS_init("/fakebinary"))
#elif defined(ANDROID)
+ void init(const char *const name A_UNUSED)
+ {
if (!PHYSFS_init((getRealPath(".").append("/fakebinary")).c_str()))
#else
+ void init(const char *const name)
+ {
if (!PHYSFS_init(name))
#endif
{