20 , forcedWriteProtect(false)
41 patch->copyBlock(sector *
SECTOR_SIZE, buf, SECTOR_SIZE);
56 writeSectorImpl(sector, buf);
65 return getNbSectorsImpl();
70 patch = make_unique<IPSPatch>(patchFile, std::move(patch));
75 return patch->getFilenames();
80 return !patch->isEmptyPatch();
86 if (sha1cache.
empty()) {
106 byte* buffer,
size_t startSector,
size_t nbSectors)
109 for (
auto i :
xrange(nbSectors)) {
119 const byte* buffer,
size_t startSector,
size_t nbSectors)
122 for (
auto i :
xrange(nbSectors)) {
133 return forcedWriteProtect || isWriteProtectedImpl();
139 forcedWriteProtect =
true;