Skip to content

Commit

Permalink
-CodeChange: fix data path generation for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
miniupnp committed Feb 9, 2017
1 parent ae129d1 commit 110eb8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/file.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ bool File_Init(void)
/* append relative Resources directory */ /* append relative Resources directory */
len = strlen(g_dune_data_dir); len = strlen(g_dune_data_dir);
snprintf(g_dune_data_dir + len, sizeof(g_dune_data_dir) - len, "/%s/data", buf); 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); Debug("datadir set to : %s\n", g_dune_data_dir);
CFRelease(resourcesDir); CFRelease(resourcesDir);
Expand Down

0 comments on commit 110eb8e

Please sign in to comment.