diff --git a/README.md b/README.md index 97d94c1e..edb4a997 100644 --- a/README.md +++ b/README.md @@ -180,11 +180,11 @@ Parameters that are enabled by default have to be explicitly disabled. These (cu | `wine_color` | Change color of the wine/proton text | | `cpu_mhz` | Shows the CPUs current MHz | | `gpu_load_change` | Changes the color of the GPU load depending on load | -| `gpu_load_color` | Set the colors for the gpu load change low,medium and high. e.g `gpu_load_color=0000FF,00FFFF,FF00FF` | -| `gpu_load_value` | Set the values for medium and high load e.g `gpu_load_value=50,90` | +| `gpu_load_color` | Set the colors for the gpu load change low,medium and high. e.g `gpu_load_color=0000FF+00FFFF+FF00FF` | +| `gpu_load_value` | Set the values for medium and high load e.g `gpu_load_value=50+90` | | `cpu_load_change` | Changes the color of the CPU load depending on load | -| `cpu_load_color` | Set the colors for the gpu load change low,medium and high. e.g `cpu_load_color=0000FF,00FFFF,FF00FF` | -| `cpu_load_value` | Set the values for medium and high load e.g `cpu_load_value=50,90` | +| `cpu_load_color` | Set the colors for the gpu load change low,medium and high. e.g `cpu_load_color=0000FF+00FFFF+FF00FF` | +| `cpu_load_value` | Set the values for medium and high load e.g `cpu_load_value=50+90` | | `cellpadding_y` | Set the vertical cellpadding, default is `-0.085` | | `frametime` | Display frametime next to fps text | | `table_columns` | Set the number of table columns for ImGui, defaults to 3 | diff --git a/src/overlay_params.cpp b/src/overlay_params.cpp index 2daa07e0..3db74e9d 100644 --- a/src/overlay_params.cpp +++ b/src/overlay_params.cpp @@ -159,7 +159,7 @@ parse_load_color(const char *str) std::vector load_colors; std::stringstream ss(str); std::string token; - while (std::getline(ss, token, ',')) { + while (std::getline(ss, token, '+')) { trim(token); load_colors.push_back(std::stoi(token, NULL, 16)); } @@ -176,7 +176,7 @@ parse_load_value(const char *str) std::vector load_value; std::stringstream ss(str); std::string token; - while (std::getline(ss, token, ',')) { + while (std::getline(ss, token, '+')) { trim(token); load_value.push_back(std::stoi(token)); }