mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
Merge branch 'main' of https://github.com/geode-sdk/geode
This commit is contained in:
commit
c348fc8a55
2 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
* Add utils for setting thread name, show it on log (832bcf81, ce53fb31)
|
||||
* Add some launch arguments for geode (7ccaef90)
|
||||
* Deprecate blocking file picking utils (ee97e2da)
|
||||
* Sort mods by id in crashlog (984d1482)
|
||||
|
||||
|
||||
## v2.0.0-beta.11
|
||||
|
|
|
@ -31,6 +31,13 @@ void crashlog::printMods(std::stringstream& stream) {
|
|||
if (mods.empty()) {
|
||||
stream << "<None>\n";
|
||||
}
|
||||
std::sort(mods.begin(), mods.end(), [](Mod* a, Mod* b) {
|
||||
auto const s1 = a->getID();
|
||||
auto const s2 = b->getID();
|
||||
return std::lexicographical_compare(s1.begin(), s1.end(), s2.begin(), s2.end(), [](auto a, auto b) {
|
||||
return std::tolower(a) < std::tolower(b);
|
||||
});
|
||||
});
|
||||
using namespace std::string_view_literals;
|
||||
for (auto& mod : mods) {
|
||||
stream << fmt::format("{} | [{}] {}\n",
|
||||
|
|
Loading…
Reference in a new issue