Fixed build warnings for gcc
This commit is contained in:
parent
cabc0ae639
commit
a579793bd1
8 changed files with 45 additions and 37 deletions
|
@ -2,6 +2,7 @@
|
|||
#define _MAPPER_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include "SDL.h"
|
||||
#include "types.h"
|
||||
|
||||
struct PPU;
|
||||
|
@ -16,7 +17,7 @@ struct Mapper
|
|||
void(*write_cpu)(void*, Word, Byte);
|
||||
void(*write_ppu)(void*, Word, Byte);
|
||||
|
||||
void(*get_pattern_table_texture)(void*, void*, int);
|
||||
void(*get_pattern_table_texture)(void*, SDL_Texture*, int);
|
||||
};
|
||||
|
||||
#define MapperReadCPU(mapper, addr) mapper->read_cpu(mapper->mapperStruct, addr)
|
||||
|
@ -28,4 +29,4 @@ struct Mapper
|
|||
struct Mapper* createMapper(Byte id, Byte prg_rom_size, Byte chr_rom_size, FILE* fp);
|
||||
void destroyMapper(struct Mapper* mapper);
|
||||
|
||||
#endif // _MAPPER_H_
|
||||
#endif // _MAPPER_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue