Grafx2 can now read and convert gfx2.cfg from the original DOS (96.5%) format.

Older .cfg files in svn were saved incorrectly: the wrong size of chunk #5
(0x0101 instead of 0xE1) made it impossible to re-read the file in gfxcfg.

gfxcfg can read and save gfx2.cfg. Upward compatibility is provided:
- If new chunk types are added to the format, it only needs a re-compile. Older
files can be read and saved.
- If new keyboard shortcuts are added (134 currently), the older files can be
read and the default shortcut will be used for missing keys.

Fixed many endianness cases, hopefully
Fixed LBM loading : bug in ASM->C conversion of Couleur_ILBM_line()
Broke PCX loading : argh!


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@176 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-09-29 23:15:08 +00:00
parent 11a4a488a6
commit acfe5836ce
16 changed files with 635 additions and 421 deletions

View File

@@ -120,7 +120,7 @@ struct T_Degrade_Tableau
dword Inverse; // "Le dégradé va de Fin à Debut" //INT
dword Melange; // Valeur de mélange du dégradé (0-255) //LONG
dword Technique; // Technique à utiliser (0-2) //INT
};
} __attribute__((__packed__));
// Déclaration d'une info de shade
struct T_Shade
@@ -139,7 +139,7 @@ struct Config_Mode_video
byte Etat;
word Largeur;
word Hauteur;
};
} __attribute__((__packed__));
struct Config_Header
{
@@ -148,20 +148,20 @@ struct Config_Header
byte Version2;
byte Beta1;
byte Beta2;
};
} __attribute__((__packed__));
struct Config_Chunk
{
byte Numero;
word Taille;
};
} __attribute__((__packed__));
struct Config_Infos_touche
{
word Numero;
word Touche;
word Touche2;
};
} __attribute__((__packed__));