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

19
const.h
View File

@@ -265,15 +265,16 @@ enum MODES_DE_SHADE
enum CHUNKS_CFG
{
CHUNK_TOUCHES,
CHUNK_MODES_VIDEO,
CHUNK_SHADE,
CHUNK_MASQUE,
CHUNK_STENCIL,
CHUNK_DEGRADES,
CHUNK_SMOOTH,
CHUNK_EXCLUDE_COLORS,
CHUNK_QUICK_SHADE
CHUNK_TOUCHES = 0,
CHUNK_MODES_VIDEO = 1,
CHUNK_SHADE = 2,
CHUNK_MASQUE = 3,
CHUNK_STENCIL = 4,
CHUNK_DEGRADES = 5,
CHUNK_SMOOTH = 6,
CHUNK_EXCLUDE_COLORS = 7,
CHUNK_QUICK_SHADE = 8,
CHUNK_MAX
};
// Les différents types de lecteurs: