mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-18 03:39:16 +01:00
Update runtime for mod loading on posix systems, enable all mods temporarily
This commit is contained in:
parent
c2d7a47512
commit
99dc216c75
@ -120,7 +120,8 @@ namespace recomp {
|
|||||||
std::vector<InputField> apply_menu;
|
std::vector<InputField> apply_menu;
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr const std::vector<InputField>& get_default_mapping_for_input(const DefaultN64Mappings& defaults, const GameInput input) {
|
inline const std::vector<InputField>& get_default_mapping_for_input(const DefaultN64Mappings& defaults, const GameInput input) {
|
||||||
|
static const std::vector<InputField> empty_input_field{};
|
||||||
switch (input) {
|
switch (input) {
|
||||||
case GameInput::A: return defaults.a;
|
case GameInput::A: return defaults.a;
|
||||||
case GameInput::B: return defaults.b;
|
case GameInput::B: return defaults.b;
|
||||||
@ -143,7 +144,7 @@ namespace recomp {
|
|||||||
case GameInput::TOGGLE_MENU: return defaults.toggle_menu;
|
case GameInput::TOGGLE_MENU: return defaults.toggle_menu;
|
||||||
case GameInput::ACCEPT_MENU: return defaults.accept_menu;
|
case GameInput::ACCEPT_MENU: return defaults.accept_menu;
|
||||||
case GameInput::APPLY_MENU: return defaults.apply_menu;
|
case GameInput::APPLY_MENU: return defaults.apply_menu;
|
||||||
default: return std::vector<InputField>();
|
default: return empty_input_field;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b9592c625d87ab45ddd12d9ad30c886ee77a5d68
|
Subproject commit a7e5a7770f2344aa504725af6465e2db4565292c
|
@ -650,6 +650,8 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
// TODO load all mods as a temporary solution to not having a UI yet.
|
||||||
|
recomp::mods::enable_mod(mod.mod_id, true);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@
|
|||||||
void zelda64::register_patches() {
|
void zelda64::register_patches() {
|
||||||
recomp::overlays::register_patches(mm_patches_bin, sizeof(mm_patches_bin), section_table, ARRLEN(section_table));
|
recomp::overlays::register_patches(mm_patches_bin, sizeof(mm_patches_bin), section_table, ARRLEN(section_table));
|
||||||
recomp::overlays::register_base_exports(export_table);
|
recomp::overlays::register_base_exports(export_table);
|
||||||
recomp::overlays::register_base_events(event_name_table);
|
recomp::overlays::register_base_events(event_names);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user