Correct some invalid prototypes.
This commit is contained in:
@@ -24,17 +24,17 @@
|
||||
|
||||
typedef struct NesCart_
|
||||
{
|
||||
uint32_t PROMSize, /* Size of PROM */
|
||||
VROMSize; /* Size of VROM */
|
||||
char MapperID; /* Mapper Type */
|
||||
uint32_t PROMSize, /* Size of PROM */
|
||||
VROMSize; /* Size of VROM */
|
||||
char MapperID; /* Mapper Type */
|
||||
uint8_t Flags;
|
||||
char *FileName;
|
||||
uint8_t *File; /* Pointer on the file in memory */
|
||||
uint8_t *PROMBanks; /* Pointer on the first PROM */
|
||||
uint8_t *VROMBanks; /* Pointer on the first VROM */
|
||||
uint8_t *File; /* Pointer on the file in memory */
|
||||
uint8_t *PROMBanks; /* Pointer on the first PROM */
|
||||
uint8_t *VROMBanks; /* Pointer on the first VROM */
|
||||
} NesCart;
|
||||
|
||||
void DumpCartProperties();
|
||||
void DumpCartProperties(FILE *out, NesCart * cart);
|
||||
int LoadCart(const char *filename, NesCart * cart);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,7 +23,7 @@ typedef int (*MapperInit) (NesCart * cart);
|
||||
typedef int (*MapperWriteHook) (register unsigned short Addr,
|
||||
register unsigned char Value);
|
||||
typedef int (*MapperIRQ) (int cycledone);
|
||||
typedef void (*MapperDump) ();
|
||||
typedef void (*MapperDump) (FILE *fp);
|
||||
|
||||
#ifdef __TINES_MAPPERS__
|
||||
|
||||
@@ -51,10 +51,12 @@ void set_prom_bank_32k(unsigned short addr,int slot);
|
||||
|
||||
/* Available functions outside of mappers */
|
||||
|
||||
void mapper_list ();
|
||||
int mapper_init (NesCart *cart);
|
||||
extern int (*mapper_irqloop) (int cyclodone);
|
||||
extern void (*mapper_dump) (FILE *fp);
|
||||
void mapper_list();
|
||||
int mapper_init(NesCart *cart);
|
||||
|
||||
extern MapperIRQ mapper_irqloop;
|
||||
extern MapperDump mapper_dump;
|
||||
extern MapperWriteHook mapper_hook;
|
||||
|
||||
#endif /* __TINES_MAPPERS__ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user