Use getFileLocation for loading files (install is broken on Linux).

This commit is contained in:
Steve 2016-02-29 14:43:24 +00:00
parent d869c22f36
commit 8242dbf037
6 changed files with 6 additions and 5 deletions

View File

@ -317,7 +317,7 @@ void loadCapitalShipDefs(void)
memset(&defHead, 0, sizeof(Entity));
defTail = &defHead;
filenames = getFileList("data/capitalShips", &count);
filenames = getFileList(getFileLocation("data/capitalShips"), &count);
for (i = 0 ; i < count ; i++)
{

View File

@ -622,7 +622,7 @@ static void loadFighterDefList(char *dir)
char path[MAX_FILENAME_LENGTH];
int count, i;
filenames = getFileList(dir, &count);
filenames = getFileList(getFileLocation(dir), &count);
for (i = 0 ; i < count ; i++)
{

View File

@ -54,7 +54,7 @@ void initChallenges(void)
tail = &game.challengeMissionHead;
filenames = getFileList("data/challenges", &count);
filenames = getFileList(getFileLocation("data/challenges"), &count);
for (i = 0 ; i < count ; i++)
{

View File

@ -26,6 +26,7 @@ extern void selectWidget(const char *name, const char *group);
extern void retreatAllies(void);
extern void retreatEnemies(void);
extern char *getTranslatedString(char *string);
extern char *getFileLocation(char *filename);
extern Battle battle;
extern Entity *player;

View File

@ -96,7 +96,7 @@ static void loadMissions(StarSystem *starSystem)
sprintf(path, "data/missions/%s", name);
filenames = getFileList(path, &count);
filenames = getFileList(getFileLocation(path), &count);
for (i = 0 ; i < count ; i++)
{

View File

@ -255,7 +255,7 @@ static void loadWidgets()
char path[MAX_FILENAME_LENGTH];
int count, i;
filenames = getFileList("data/widgets", &count);
filenames = getFileList(getFileLocation("data/widgets"), &count);
for (i = 0 ; i < count ; i++)
{