OS4, OSX: Centralized the part which determined which directory contains the program's files.
Owners of these platforms, please check if I did it ok. It should crash spectacularly on program init or shutdown if I messed up. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@312 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -403,23 +403,15 @@ int Charger_INI(struct S_Config * Conf)
|
||||
Nom_du_fichier=(char *)malloc(256);
|
||||
|
||||
// On calcule le nom du fichier qu'on manipule:
|
||||
#ifdef __amigaos4__
|
||||
strcpy(Nom_du_fichier,"PROGDIR:gfx2.ini");
|
||||
#else
|
||||
strcpy(Nom_du_fichier,Repertoire_du_programme);
|
||||
strcat(Nom_du_fichier,"gfx2.ini");
|
||||
#endif
|
||||
|
||||
Fichier=fopen(Nom_du_fichier,"rb");
|
||||
if (Fichier==0)
|
||||
{
|
||||
// Si le fichier ini est absent on le relit depuis gfx2.dat
|
||||
#ifdef __amigaos4__
|
||||
strcpy(Nom_du_fichier,"PROGDIR:gfx2.dat");
|
||||
#else
|
||||
strcpy(Nom_du_fichier,Repertoire_du_programme);
|
||||
strcat(Nom_du_fichier,"gfx2.dat");
|
||||
#endif
|
||||
Fichier=fopen(Nom_du_fichier,"rb");
|
||||
if (Fichier == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user