mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Stop using f(un)?lockfile
Those are only useful for locking file IO across threads, but RGBLINK is single-threaded anyways, so they don't matter. Plus, they aren't provided by mingw, so that'll remove part of the problem
This commit is contained in:
@@ -188,10 +188,6 @@ static void writeROM(void)
|
||||
checkOverlay();
|
||||
|
||||
if (outputFile) {
|
||||
flockfile(outputFile);
|
||||
if (overlayFile)
|
||||
flockfile(overlayFile);
|
||||
|
||||
if (sections[SECTTYPE_ROM0].nbBanks > 0)
|
||||
writeBank(sections[SECTTYPE_ROM0].banks[0].sections,
|
||||
0x0000, 0x4000);
|
||||
@@ -199,10 +195,6 @@ static void writeROM(void)
|
||||
for (uint32_t i = 0 ; i < sections[SECTTYPE_ROMX].nbBanks; i++)
|
||||
writeBank(sections[SECTTYPE_ROMX].banks[i].sections,
|
||||
0x4000, 0x4000);
|
||||
|
||||
if (overlayFile)
|
||||
funlockfile(overlayFile);
|
||||
funlockfile(outputFile);
|
||||
}
|
||||
|
||||
closeFile(outputFile);
|
||||
|
||||
Reference in New Issue
Block a user