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
		
			
				
	
	
		
			17 lines
		
	
	
		
			562 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			562 B
		
	
	
	
		
			C
		
	
	
	
	
	
 | 
						|
word  endian_magic16(word x);
 | 
						|
dword endian_magic32(dword x);
 | 
						|
 | 
						|
int read_bytes(FILE *Fichier, void *Dest, size_t Taille);
 | 
						|
int write_bytes(FILE *Fichier, void *Dest, size_t Taille);
 | 
						|
 | 
						|
int read_word_le(FILE *Fichier, word *Dest);
 | 
						|
int write_word_le(FILE *Fichier, word Mot);
 | 
						|
int read_dword_le(FILE *Fichier, dword *Dest);
 | 
						|
int write_dword_le(FILE *Fichier, dword Mot);
 | 
						|
 | 
						|
int read_word_be(FILE *Fichier, word *Dest);
 | 
						|
int write_word_be(FILE *Fichier, word Mot);
 | 
						|
int read_dword_be(FILE *Fichier, dword *Dest);
 | 
						|
int write_dword_be(FILE *Fichier, dword Mot);
 |