mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 16:07:52 -05:00
how's this
This commit is contained in:
parent
1f3b2145e1
commit
00fa3b6236
1 changed files with 4 additions and 6 deletions
|
@ -24,20 +24,18 @@ void CopyButtonSettingNode::onCopy(CCObject*) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
std::stringstream ss;
|
std::string modsList;
|
||||||
using namespace std::string_view_literals;
|
using namespace std::string_view_literals;
|
||||||
for (int i = 0; i < mods.size(); i++) {
|
for (int i = 0; i < mods.size(); i++) {
|
||||||
auto& mod = mods[i];
|
auto& mod = mods[i];
|
||||||
ss << fmt::format("{} | [{}] {}",
|
modsList += fmt::format("{} | [{}] {}{}",
|
||||||
mod->isEnabled() ? "x"sv :
|
mod->isEnabled() ? "x"sv :
|
||||||
mod->hasLoadProblems() ? "!"sv :
|
mod->hasLoadProblems() ? "!"sv :
|
||||||
mod->targetsOutdatedVersion() ? "*"sv :
|
mod->targetsOutdatedVersion() ? "*"sv :
|
||||||
" "sv,
|
" "sv,
|
||||||
mod->getVersion().toVString(), mod->getID()
|
mod->getVersion().toVString(), mod->getID(),
|
||||||
|
i < mods.size() ? "\n" : ""
|
||||||
);
|
);
|
||||||
if (i != mods.size() - 1) {
|
|
||||||
ss << "\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
clipboard::write(ss.str());
|
clipboard::write(ss.str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue