|
|
|
@ -165,6 +165,7 @@ parse_str(const char *str)
|
|
|
|
|
#define parse_engine_color(s) parse_color(s)
|
|
|
|
|
#define parse_io_color(s) parse_color(s)
|
|
|
|
|
#define parse_frametime_color(s) parse_color(s)
|
|
|
|
|
#define parse_background_color(s) parse_color(s)
|
|
|
|
|
|
|
|
|
|
static bool
|
|
|
|
|
parse_help(const char *str)
|
|
|
|
@ -318,6 +319,7 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
|
params->engine_color = strtol("eb5b5b", NULL, 16);
|
|
|
|
|
params->io_color = strtol("a491d3", NULL, 16);
|
|
|
|
|
params->frametime_color = strtol("00ff00", NULL, 16);
|
|
|
|
|
params->background_color = strtol("020202", NULL, 16);
|
|
|
|
|
|
|
|
|
|
// first pass with env var
|
|
|
|
|
if (env)
|
|
|
|
@ -366,7 +368,7 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
|
// Command buffer gets reused and timestamps cause hangs for some reason, force off for now
|
|
|
|
|
params->enabled[OVERLAY_PARAM_ENABLED_gpu_timing] = false;
|
|
|
|
|
// Convert from 0xRRGGBB to ImGui's format
|
|
|
|
|
std::array<unsigned *, 7> colors = {
|
|
|
|
|
std::array<unsigned *, 8> colors = {
|
|
|
|
|
¶ms->crosshair_color,
|
|
|
|
|
¶ms->cpu_color,
|
|
|
|
|
¶ms->gpu_color,
|
|
|
|
@ -374,6 +376,7 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
|
¶ms->ram_color,
|
|
|
|
|
¶ms->engine_color,
|
|
|
|
|
¶ms->io_color,
|
|
|
|
|
¶ms->background_color,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
for (auto color : colors){
|
|
|
|
|