fixed mem access violation
This commit is contained in:
parent
2b71e3e0d2
commit
56c9dfbe6e
8 changed files with 188 additions and 64 deletions
|
@ -77,7 +77,12 @@ struct PPU
|
|||
Byte oamdma;
|
||||
|
||||
Byte* patternTables[2];
|
||||
Byte* nametables[4];
|
||||
SDL_Texture* patternTableTextures[2];
|
||||
|
||||
Byte* nameTables[2];
|
||||
SDL_Texture* nameTableTextures[2];
|
||||
Byte mirroring;
|
||||
|
||||
Byte* paletteIndexes;
|
||||
|
||||
union
|
||||
|
@ -106,4 +111,7 @@ void ppuWrite(struct PPU* ppu, Word addr, Byte val);
|
|||
|
||||
int tickPPU(struct PPU* ppu);
|
||||
|
||||
SDL_Texture* getPatternTableTexture(struct PPU* ppu, int index);
|
||||
SDL_Texture* getNameTableTexture(struct PPU* ppu, int index);
|
||||
|
||||
#endif // _PPU_H_
|
Loading…
Add table
Add a link
Reference in a new issue