mirror of
https://github.com/dborth/fceugx.git
synced 2025-07-27 03:37:23 +02:00

* Complete rewrite based on code from SNES9x GX and Genesis Plus GX * Wiimote, Nunchuk, and Classic controller support * Button mapping for all controller types * Full support for SD, USB, DVD, GC Memory Card, and Zip files * Game starts immediately after loading * Load/save preference selector. ROMs, saves, and preferences are saved/loaded according to these * Preliminary Windows file share loading/saving (SMB) support on Wii: You can input your network settings into FCEUGX.xml, or edit fceuconfig.cpp from the source code and compile. * 'Auto' settings for save/load - attempts to automatically determine your load/save device(s) - SD, USB, Memory Card, DVD, SMB * Preferences are loaded and saved in XML format. You can open FCEUGX.xml edit all settings, including some not available within the program * One makefile to make all versions
46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/****************************************************************************
|
|
* FCE Ultra 0.98.12
|
|
* Nintendo Wii/Gamecube Port
|
|
*
|
|
* Tantric September 2008
|
|
*
|
|
* gcunzip.h
|
|
*
|
|
* Unzip routines
|
|
****************************************************************************/
|
|
|
|
#ifndef _GCUNZIP_H_
|
|
#define _GCUNZIP_H_
|
|
|
|
#include <smb.h>
|
|
|
|
extern int IsZipFile (char *buffer);
|
|
|
|
int UnZipFATFile (unsigned char *outbuffer, FILE* infile); // Reading from FAT
|
|
int UnZipDVDFile (unsigned char *outbuffer, u64 inoffset); // Reading from DVD
|
|
int UnZipSMBFile (unsigned char *outbuffer, SMBFILE infile); // Reading from SMB
|
|
|
|
/*
|
|
* Zip file header definition
|
|
*/
|
|
typedef struct
|
|
{
|
|
unsigned int zipid __attribute__ ((__packed__)); // 0x04034b50
|
|
unsigned short zipversion __attribute__ ((__packed__));
|
|
unsigned short zipflags __attribute__ ((__packed__));
|
|
unsigned short compressionMethod __attribute__ ((__packed__));
|
|
unsigned short lastmodtime __attribute__ ((__packed__));
|
|
unsigned short lastmoddate __attribute__ ((__packed__));
|
|
unsigned int crc32 __attribute__ ((__packed__));
|
|
unsigned int compressedSize __attribute__ ((__packed__));
|
|
unsigned int uncompressedSize __attribute__ ((__packed__));
|
|
unsigned short filenameLength __attribute__ ((__packed__));
|
|
unsigned short extraDataLength __attribute__ ((__packed__));
|
|
}
|
|
PKZIPHEADER;
|
|
|
|
u32 FLIP32 (u32 b);
|
|
u16 FLIP16 (u16 b);
|
|
|
|
#endif
|