Use getFileLocation for loading files (install is broken on Linux).
This commit is contained in:
parent
d869c22f36
commit
8242dbf037
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue