From ea0cc6e6be76e40d189e9e39ec077dae8efdf9f4 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Tue, 3 Sep 2024 00:04:17 -0400 Subject: [PATCH] Update runtime to have mod list functionality --- lib/N64ModernRuntime | 2 +- src/main/main.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/N64ModernRuntime b/lib/N64ModernRuntime index 3718758..986881e 160000 --- a/lib/N64ModernRuntime +++ b/lib/N64ModernRuntime @@ -1 +1 @@ -Subproject commit 3718758cd529c779018a880ab645cec9d9888803 +Subproject commit 986881e4e1b19d39ad0efd5a301be7ed439434b1 diff --git a/src/main/main.cpp b/src/main/main.cpp index cc34fa8..579071a 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -631,6 +631,12 @@ int main(int argc, char** argv) { recomp::mods::scan_mods(); + printf("Found mods:\n"); + for (const auto& mod : recomp::mods::get_mod_details("mm")) { + printf(" %s(%s)\n", mod.mod_id.c_str(), mod.version.to_string().c_str()); + } + printf("\n"); + recomp::start( 64 * 1024 * 1024, // 64MB to have plenty of room for loading mods project_version,