File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1290,7 +1290,13 @@ N64Recomp::Context context_from_regenerated_list(const RegeneratedList& regenlis
1290
1290
1291
1291
reloc_out.address = reloc_in.section_offset + section_out.ram_addr ;
1292
1292
reloc_out.target_section_offset = reloc_in.target_section_offset ;
1293
- reloc_out.symbol_index = 0 ; // Unused for live recompilation.
1293
+ if (reloc_in.target_section == N64Recomp::SectionEvent) {
1294
+ // Symbol index holds the event index for event reference symbols.
1295
+ reloc_out.symbol_index = reloc_in.target_section_offset ;
1296
+ }
1297
+ else {
1298
+ reloc_out.symbol_index = 0 ; // Unused for live recompilation.
1299
+ }
1294
1300
reloc_out.target_section = reloc_in.target_section ;
1295
1301
reloc_out.type = static_cast <N64Recomp::RelocType>(reloc_in.type );
1296
1302
reloc_out.reference_symbol = true ;
You can’t perform that action at this time.
0 commit comments