mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-12 11:14:02 +02:00
byuu says: - bsnes: added video filters from bsnes v082 - bsnes: added ZSNES snow effect option when games paused or unloaded (no, I'm not joking) - bsnes: added 7-zip support (LZMA 19.00 SDK) [Recent higan WIPs have also mentioned bsnes changes, although the higan code no longer includes the bsnes code. These changes include: - higan, bsnes: added EXLOROM, EXLOROM-RAM, EXHIROM mappings - higan, bsnes: focus the viewport after leaving fullscreen exclusive mode - bsnes: re-added mightymo's cheat code database - bsnes: improved make install rules for the game and cheat code databases - bsnes: delayed construction of hiro::Window objects to properly show bsnes window icons - Ed.]
28 lines
516 B
C++
28 lines
516 B
C++
#pragma once
|
|
|
|
namespace nall::CD::Sync {
|
|
|
|
inline auto create(array_span<uint8_t> sector) -> bool {
|
|
if(sector.size() != 12 && sector.size() != 2352) return false;
|
|
|
|
for(uint n : range(12)) {
|
|
sector[n] = (n == 0 || n == 11) ? 0x00 : 0xff;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
//
|
|
|
|
inline auto verify(array_view<uint8_t> sector) -> bool {
|
|
if(sector.size() != 12 && sector.size() != 2352) return false;
|
|
|
|
for(uint n : range(12)) {
|
|
if(sector[n] != (n == 0 || n == 11) ? 0x00 : 0xff) return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
}
|