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:
3
init.c
3
init.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user