mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +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();
|
checkOverlay();
|
||||||
|
|
||||||
if (outputFile) {
|
if (outputFile) {
|
||||||
flockfile(outputFile);
|
|
||||||
if (overlayFile)
|
|
||||||
flockfile(overlayFile);
|
|
||||||
|
|
||||||
if (sections[SECTTYPE_ROM0].nbBanks > 0)
|
if (sections[SECTTYPE_ROM0].nbBanks > 0)
|
||||||
writeBank(sections[SECTTYPE_ROM0].banks[0].sections,
|
writeBank(sections[SECTTYPE_ROM0].banks[0].sections,
|
||||||
0x0000, 0x4000);
|
0x0000, 0x4000);
|
||||||
@@ -199,10 +195,6 @@ static void writeROM(void)
|
|||||||
for (uint32_t i = 0 ; i < sections[SECTTYPE_ROMX].nbBanks; i++)
|
for (uint32_t i = 0 ; i < sections[SECTTYPE_ROMX].nbBanks; i++)
|
||||||
writeBank(sections[SECTTYPE_ROMX].banks[i].sections,
|
writeBank(sections[SECTTYPE_ROMX].banks[i].sections,
|
||||||
0x4000, 0x4000);
|
0x4000, 0x4000);
|
||||||
|
|
||||||
if (overlayFile)
|
|
||||||
funlockfile(overlayFile);
|
|
||||||
funlockfile(outputFile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
closeFile(outputFile);
|
closeFile(outputFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user