string-view-ify stuff

This commit is contained in:
Henrik Rydgård committed 2025-01-20 12:19:14 +01:00
1 parent 6732d54742
commit 86fcdeeb25
3 files changed
+76 -54

No files matched your search

+4 -3
View File
@@ -977,11 +977,12 @@ void DrawHLEModules(ImConfig &config) {
}
std::sort(modules.begin(), modules.end(), [](const HLEModule* a, const HLEModule* b) {
return std::strcmp(a->name, b->name) < 0;
return a->name < b->name;
});
std::string label;
for (auto mod : modules) {
if (ImGui::TreeNode(mod->name)) {
label = mod->name;
if (ImGui::TreeNode(label.c_str())) {
for (int j = 0; j < mod->numFunctions; j++) {
auto &func = mod->funcTable[j];
ImGui::Text("%s(%s)", func.name, func.argmask);