From 60b8d58e734a47d2bcf94b792aef78881e7493c4 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Wed, 4 Sep 2024 02:29:01 -0400 Subject: [PATCH] Update runtime and print mod authors and dependencies --- lib/N64ModernRuntime | 2 +- src/main/main.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/N64ModernRuntime b/lib/N64ModernRuntime index 986881e..b9592c6 160000 --- a/lib/N64ModernRuntime +++ b/lib/N64ModernRuntime @@ -1 +1 @@ -Subproject commit 986881e4e1b19d39ad0efd5a301be7ed439434b1 +Subproject commit b9592c625d87ab45ddd12d9ad30c886ee77a5d68 diff --git a/src/main/main.cpp b/src/main/main.cpp index 579071a..910f545 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -634,6 +634,22 @@ int main(int argc, char** argv) { 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()); + if (!mod.authors.empty()) { + printf(" Authors: %s", mod.authors[0].c_str()); + for (size_t author_index = 1; author_index < mod.authors.size(); author_index++) { + const std::string& author = mod.authors[author_index]; + printf(", %s", author.c_str()); + } + printf("\n"); + } + if (!mod.dependencies.empty()) { + printf(" Dependencies: %s:%s", mod.dependencies[0].mod_id.c_str(), mod.dependencies[0].version.to_string().c_str()); + for (size_t dep_index = 1; dep_index < mod.dependencies.size(); dep_index++) { + const recomp::mods::Dependency& dep = mod.dependencies[dep_index]; + printf(", %s:%s", dep.mod_id.c_str(), dep.version.to_string().c_str()); + } + printf("\n"); + } } printf("\n");