mirror of
https://github.com/zeldaret/ph
synced 2026-05-24 07:10:52 -04:00
Write ROM size
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user