@gaialabs/core 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3782,7 +3782,7 @@ var RomGenerator = class {
3782
3782
  }
3783
3783
  async writeRom(blockLookup, entryPoints, chunkFiles, asmFiles) {
3784
3784
  const romWriter = new RomWriter(entryPoints, "GAIALABS", "01JG ");
3785
- for (const file of chunkFiles) await romWriter.writeFile(file, blockLookup);
3785
+ for (const file of chunkFiles.sort((a, b) => a.location - b.location)) await romWriter.writeFile(file, blockLookup);
3786
3786
  romWriter.writeHeader();
3787
3787
  romWriter.writeEntryPoints(asmFiles);
3788
3788
  romWriter.writeChecksum();