Skip to content

Commit

Permalink
allow expanding the rom in pass 1
Browse files Browse the repository at this point in the history
this means the freespace finder can use the expanded space without
having to patch twice or whatnot
  • Loading branch information
randomdude999 committed Jan 18, 2024
1 parent e67a56e commit 8b0992e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/asar/assembleblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ inline void write1_65816(unsigned int num)
int pcpos = snestopc(realsnespos & 0xFFFFFF);
if(pcpos < 0) asar_throw_error(pass, error_type_fatal, error_id_internal_error, "invalid pos in pass 1");
addromwrite(pcpos, 1);
if (pcpos>=romlen) romlen=pcpos+1;
}
step(1);
ratsmetastate=ratsmeta_ban;
Expand Down

0 comments on commit 8b0992e

Please sign in to comment.