mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
only show whether mods are loaded in crashlog
This commit is contained in:
parent
bb431ee1dc
commit
5b7d3183bb
1 changed files with 3 additions and 4 deletions
|
@ -24,14 +24,13 @@ static void printGeodeInfo(std::stringstream& stream) {
|
|||
|
||||
static void printMods(std::stringstream& stream) {
|
||||
auto mods = Loader::get()->getAllMods();
|
||||
if (!mods.size()) {
|
||||
if (mods.empty()) {
|
||||
stream << "<None>\n";
|
||||
}
|
||||
using namespace std::string_view_literals;
|
||||
for (auto& mod : mods) {
|
||||
stream << fmt::format("{:>8} | {:>8} | [{}] {}\n",
|
||||
mod->isLoaded() ? "Loaded"sv : "Unloaded"sv,
|
||||
mod->isEnabled() ? "Enabled"sv : "Disabled"sv,
|
||||
stream << fmt::format("{} | [{}] {}\n",
|
||||
mod->isLoaded() ? "x"sv : " "sv,
|
||||
mod->getVersion().toString(), mod->getID()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue