bsnes/higan/gb/cartridge/serialization.cpp

9 lines
195 B
C++

auto Cartridge::serialize(serializer& s) -> void {
if(ram.size) s.array(ram.data, ram.size);
if(rtc.size) s.array(rtc.data, rtc.size);
s.integer(bootromEnable);
mapper->serialize(s);
}