When gfx2.ini is missing, default values are now taken from gfx2.dat.

Removed a custom toupper() function.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@174 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-09-27 20:17:00 +00:00
parent 7197a98fe3
commit 48fca5ceb3
9 changed files with 699 additions and 710 deletions

3
init.c
View File

@@ -1,4 +1,3 @@
#define TAILLE_FICHIER_DATA 78544 // Taille du fichier GFX2.DAT
#include <fcntl.h>
#include <stdio.h>
@@ -223,7 +222,7 @@ void Charger_DAT(void)
}
Taille_fichier=Informations_Fichier.st_size;
if (Taille_fichier!=TAILLE_FICHIER_DATA)
if (Taille_fichier<DAT_DEBUT_INI_PAR_DEFAUT)
{
DEBUG("Taille",0);
Erreur(ERREUR_DAT_CORROMPU);