mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 07:02:27 +01:00
byuu says: Changelog: - Windows port should compile out-of-the-box - InputManager::scancode[] initialized at startup - Library menu shows item for each bootable media type (notably Game Boy Color) - Display Emulation menu selection fix - LibraryManager load button works now - Added hotkey to show library manager (defaults to L) - Added color emulation to video settings (missing on GBA for now) - SFC loading SGB without GB cartridge no longer segfaults - GB/GBC system.load() after cartridge.load() - GB/GBC BG-over-OAM fix - GB/GBC disallow up+down and left+right
57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
#ifdef PPU_CPP
|
|
|
|
void PPU::serialize(serializer& s) {
|
|
Thread::serialize(s);
|
|
|
|
s.array(screen);
|
|
for(auto& pixel : pixels) {
|
|
s.integer(pixel.color);
|
|
s.integer(pixel.palette);
|
|
s.integer((unsigned&)pixel.origin);
|
|
}
|
|
|
|
s.array(vram);
|
|
s.array(oam);
|
|
s.array(bgp);
|
|
s.array(obp[0]);
|
|
s.array(obp[1]);
|
|
s.array(bgpd);
|
|
s.array(obpd);
|
|
|
|
s.integer(status.lx);
|
|
s.integer(status.wyc);
|
|
|
|
s.integer(status.display_enable);
|
|
s.integer(status.window_tilemap_select);
|
|
s.integer(status.window_display_enable);
|
|
s.integer(status.bg_tiledata_select);
|
|
s.integer(status.bg_tilemap_select);
|
|
s.integer(status.ob_size);
|
|
s.integer(status.ob_enable);
|
|
s.integer(status.bg_enable);
|
|
|
|
s.integer(status.interrupt_lyc);
|
|
s.integer(status.interrupt_oam);
|
|
s.integer(status.interrupt_vblank);
|
|
s.integer(status.interrupt_hblank);
|
|
|
|
s.integer(status.scy);
|
|
s.integer(status.scx);
|
|
|
|
s.integer(status.ly);
|
|
s.integer(status.lyc);
|
|
|
|
s.integer(status.wy);
|
|
s.integer(status.wx);
|
|
|
|
s.integer(status.vram_bank);
|
|
|
|
s.integer(status.bgpi_increment);
|
|
s.integer(status.bgpi);
|
|
|
|
s.integer(status.obpi_increment);
|
|
s.integer(status.obpi);
|
|
}
|
|
|
|
#endif
|