Write ROM size

This commit is contained in:
Aetias
2023-10-15 18:02:34 +02:00
parent d12600c65a
commit cfbb047e97
+2 -1
View File
@@ -640,7 +640,8 @@ int main(int argc, const char **argv) {
return 1;
}
header.capacity = 15 - __builtin_clz(address);
header.romSize = address;
header.capacity = 15 - __builtin_clz(header.romSize);
size_t romEnd = 1 << (17 + header.capacity);
if (!Align(romEnd, fpRom, &address)) return 1;