mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-24 12:24:59 +00:00
Modding Support PR 2 (Finished mod tool base feature set and improvements for use in N64ModernRuntime) (#93)
* Remove reference context from parse_mod_symbols argument * Add support for special dependency names (self and base recomp), fix non-compliant offline mod recompiler output * Fix export names not being set on functions when parsing mod syms, add missing returns to mod parsing * Switch offline mod recompilation to use a base global event index instead of per-event global indices * Add support for creating events in normal recompilation * Output recomp API version in offline mod recompiler * Removed dependency version from mod symbols (moved to manifest) * Added mod manifest generation to mod tool * Implement mod file creation in Windows * Fixed some error prints not using stderr * Implement mod file creation on posix systems * De-hardcode symbol file path for offline mod recompiler * Fix duplicate import symbols issue and prevent emitting unused imports
This commit is contained in:
parent
5b17bf8bb5
commit
cc71b31b09
6 changed files with 755 additions and 244 deletions
|
@ -242,11 +242,11 @@ bool process_instruction(const N64Recomp::Context& context, const N64Recomp::Fun
|
|||
if (reloc_section == N64Recomp::SectionEvent) {
|
||||
needs_link_branch = link_branch;
|
||||
if (indent) {
|
||||
if (!print_unconditional_branch(" recomp_trigger_event(rdram, ctx, event_indices[{}])", reloc_reference_symbol)) {
|
||||
if (!print_unconditional_branch(" recomp_trigger_event(rdram, ctx, base_event_index + {})", reloc_reference_symbol)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!print_unconditional_branch("recomp_trigger_event(rdram, ctx, event_indices[{}])", reloc_reference_symbol)) {
|
||||
if (!print_unconditional_branch("recomp_trigger_event(rdram, ctx, base_event_index + {})", reloc_reference_symbol)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue