mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 01:19:51 +02:00
Update to bsnes v107r4 beta release.
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.]
This commit is contained in:
27
nall/cd/sync.hpp
Normal file
27
nall/cd/sync.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user