Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ Level level; // Gère les niveaux
int Horloge = 0; // Horloges du jeu
int HorlogeAvant = 0;

#ifdef __unix__
#if defined(__unix__) || defined(__HAIKU__)
char DefPath[256]; // Chemin par defaut dans arg
#endif

/*** Initialise les preferences ***/
/**********************************/
void InitPref()
{
#ifdef __unix__
#if defined(__unix__) || defined(__HAIKU__)
DefPath[0] = 0;
#endif

Expand All @@ -91,7 +91,7 @@ int main(int narg, char *argv[])

// Initialise les préferences
InitPref();
#ifdef __unix__
#if defined(__unix__) || defined(__HAIKU__)
if (narg > 1) {
strcpy(DefPath, argv[1]);
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/*** Variables globales ***/
/**************************/
extern sNewPreference Pref;
#ifdef __unix__
#if defined(__unix__) || defined(__HAIKU__)
extern char DefPath[]; // Chemin par defaut dans arg
#endif

Expand Down Expand Up @@ -152,7 +152,7 @@ bool Utils::SaveFile(const char *Path, char *Buf, long L)

/*** Met le bon chemin pour charger un fichier ***/
/*************************************************/
#if (defined(__unix__) || defined(ANDROID)) && !defined(__AMIGAOS4__)
#if (defined(__unix__) || defined(ANDROID)) || defined(__HAIKU__) && !defined(__AMIGAOS4__)
// Version Linux
void Utils::GetPath(char *Path)
{
Expand Down
Loading