Permalink
Browse files

-CodeChange: fix data path generation for OS X

  • Loading branch information...
1 parent ae129d1 commit 110eb8e5f584fa5a2595d7f5deedb544897b653b @miniupnp miniupnp committed Feb 9, 2017
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/file.c
View
@@ -554,6 +554,9 @@ bool File_Init(void)
/* append relative Resources directory */
len = strlen(g_dune_data_dir);
snprintf(g_dune_data_dir + len, sizeof(g_dune_data_dir) - len, "/%s/data", buf);
+ } else {
+ len = strlen(g_dune_data_dir);
+ snprintf(g_dune_data_dir + len, sizeof(g_dune_data_dir) - len, "/data");
}
Debug("datadir set to : %s\n", g_dune_data_dir);
CFRelease(resourcesDir);

0 comments on commit 110eb8e

Please sign in to comment.