Skip to content

Commit

Permalink
params: graphs: fix for legacy layout
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed Nov 19, 2023
1 parent b3fa8f5 commit 60779dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/hud_elements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,15 @@ void HudElements::legacy_elements(){
ordered_functions.push_back({throttling_status, "throttling_status", value});
if (params->enabled[OVERLAY_PARAM_ENABLED_fps])
ordered_functions.push_back({fps, "fps", value});
for (const auto& pair : options) {
if (pair.first.find("graphs") != std::string::npos) {
std::stringstream ss(pair.second);
std::string token;
while (std::getline(ss, token, ',')){
ordered_functions.push_back({graphs, "graphs", token});
}
}
}
if (!params->fps_metrics.empty())
ordered_functions.push_back({fps_metrics, "fps_metrics", value});
if (params->enabled[OVERLAY_PARAM_ENABLED_fps_only])
Expand Down

0 comments on commit 60779dd

Please sign in to comment.