|
|
|
@ -131,12 +131,6 @@ parse_fps_limit(const char *str)
|
|
|
|
|
return strtol(str, NULL, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static uint32_t
|
|
|
|
|
parse_crosshair_size(const char *str)
|
|
|
|
|
{
|
|
|
|
|
return strtol(str, NULL, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static bool
|
|
|
|
|
parse_no_display(const char *str)
|
|
|
|
|
{
|
|
|
|
@ -203,7 +197,6 @@ parse_path(const char *str)
|
|
|
|
|
#define parse_pci_dev(s) parse_str(s)
|
|
|
|
|
#define parse_media_player_name(s) parse_str(s)
|
|
|
|
|
|
|
|
|
|
#define parse_crosshair_color(s) parse_color(s)
|
|
|
|
|
#define parse_cpu_color(s) parse_color(s)
|
|
|
|
|
#define parse_gpu_color(s) parse_color(s)
|
|
|
|
|
#define parse_vram_color(s) parse_color(s)
|
|
|
|
@ -304,7 +297,6 @@ parse_overlay_env(struct overlay_params *params,
|
|
|
|
|
OVERLAY_PARAMS
|
|
|
|
|
#undef OVERLAY_PARAM_BOOL
|
|
|
|
|
#undef OVERLAY_PARAM_CUSTOM
|
|
|
|
|
params->enabled[OVERLAY_PARAM_ENABLED_crosshair] = 0;
|
|
|
|
|
params->enabled[OVERLAY_PARAM_ENABLED_read_cfg] = read_cfg;
|
|
|
|
|
}
|
|
|
|
|
#define OVERLAY_PARAM_BOOL(name) \
|
|
|
|
@ -352,7 +344,6 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
|
params->fps_limit = 0;
|
|
|
|
|
params->vsync = -1;
|
|
|
|
|
params->gl_vsync = -2;
|
|
|
|
|
params->crosshair_size = 30;
|
|
|
|
|
params->offset_x = 0;
|
|
|
|
|
params->offset_y = 0;
|
|
|
|
|
params->background_alpha = 0.5;
|
|
|
|
@ -392,7 +383,6 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
|
OVERLAY_PARAMS
|
|
|
|
|
#undef OVERLAY_PARAM_BOOL
|
|
|
|
|
#undef OVERLAY_PARAM_CUSTOM
|
|
|
|
|
params->enabled[OVERLAY_PARAM_ENABLED_crosshair] = 0;
|
|
|
|
|
params->options.erase("full");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -421,8 +411,7 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
|
parse_overlay_env(params, env);
|
|
|
|
|
|
|
|
|
|
// Convert from 0xRRGGBB to ImGui's format
|
|
|
|
|
std::array<unsigned *, 11> colors = {
|
|
|
|
|
¶ms->crosshair_color,
|
|
|
|
|
std::array<unsigned *, 10> colors = {
|
|
|
|
|
¶ms->cpu_color,
|
|
|
|
|
¶ms->gpu_color,
|
|
|
|
|
¶ms->vram_color,
|
|
|
|
|