Update runtime for mod loading on posix systems, enable all mods temporarily

This commit is contained in:
Mr-Wiseguy 2024-09-08 22:45:37 -04:00
parent 60b8d58e73
commit 359f8a9279
4 changed files with 7 additions and 4 deletions

View File

@ -120,7 +120,8 @@ namespace recomp {
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) {
case GameInput::A: return defaults.a;
case GameInput::B: return defaults.b;
@ -143,7 +144,7 @@ namespace recomp {
case GameInput::TOGGLE_MENU: return defaults.toggle_menu;
case GameInput::ACCEPT_MENU: return defaults.accept_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

View File

@ -650,6 +650,8 @@ int main(int argc, char** argv) {
}
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");

View File

@ -8,5 +8,5 @@
void zelda64::register_patches() {
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_events(event_name_table);
recomp::overlays::register_base_events(event_names);
}