Patch from begasus to allow building under haiku and beos. The program is crashing when you launch it (segmentation violation).
I'm not sure the way to get the program directory we use is ok for beos, but the official way of doing that is using C++ code. Maybe it's time to switch to some more unix way to store the config files... This should also fix watcom build (very untested as i'm using mingw to cross compile windows builds now) Also added begasus to the credits screen. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@325 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
13
init.c
13
init.c
@@ -50,9 +50,13 @@
|
||||
|
||||
#ifndef __linux__
|
||||
#ifndef __amigaos4__
|
||||
#ifndef __BEOS__
|
||||
#ifndef __HAIKU__
|
||||
#include "windows.h"
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __macosx__
|
||||
#import <corefoundation/corefoundation.h>
|
||||
@@ -112,7 +116,10 @@ void Rechercher_drives(void)
|
||||
char * Home = getenv("HOME");
|
||||
Ajouter_lecteur('/', LECTEUR_HDD, "/");
|
||||
Ajouter_lecteur('~', LECTEUR_HDD, Home ? Home : "");
|
||||
|
||||
#elif defined(__BEOS__) || defined(__HAIKU__)
|
||||
char * Home = getenv("$HOME");
|
||||
Ajouter_lecteur('/', LECTEUR_HDD, "/");
|
||||
Ajouter_lecteur('~', LECTEUR_HDD, Home ? Home : "");
|
||||
#elif defined(__amigaos4__)
|
||||
// No icons by default.
|
||||
// It's possible to add some here.
|
||||
@@ -189,10 +196,10 @@ void Charger_DAT(void)
|
||||
case EBADF: puts("filedes est un mauvais descripteur."); break;
|
||||
case EFAULT: puts("Un pointeur se trouve en dehors de l'espace d'adressage."); break;
|
||||
case ENAMETOOLONG: puts("Nom de fichier trop long."); break;
|
||||
case ENOENT: puts("Un composant du chemin path n'existe pas, ou il s'agit d'une chaîne vide."); break;
|
||||
case ENOENT: puts("The file path is empty or points to a non-existing directory."); break;
|
||||
case ENOMEM: puts("Pas assez de mémoire pour le noyau."); break;
|
||||
case ENOTDIR: puts("Un composant du chemin d'accès n'est pas un répertoire."); break;
|
||||
#if defined(__linux__)||defined(__amigaos4__)
|
||||
#if defined(__linux__)||defined(__amigaos4__)||defined(__BEOS__)||defined(__HAIKU__)
|
||||
case ELOOP: puts("Trop de liens symboliques rencontrés dans le chemin d'accès."); break;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user