Skip to content
Snippets Groups Projects

system-info: Improve diagnostics when layering scout onto soldier

Merged Simon McVittie requested to merge wip/t18668 into master
1 file
+ 11
1
Compare changes
  • Side-by-side
  • Inline
@@ -2562,7 +2562,17 @@ ensure_runtime_cached (SrtSystemInfo *self)
if (self->runtime.issues == SRT_RUNTIME_ISSUES_NONE &&
self->runtime.path == NULL)
{
if (g_strcmp0 (self->os_release.id, "steamrt") == 0)
const char *runtime = g_environ_getenv (self->env, "STEAM_RUNTIME");
if (runtime != NULL && runtime[0] == '/' && runtime[1] != '\0')
{
self->runtime.issues = _srt_runtime_check (srt_steam_get_bin32_path (self->steam_data),
self->runtime.expected_version,
self->env,
&self->runtime.version,
&self->runtime.path);
}
else if (g_strcmp0 (self->os_release.id, "steamrt") == 0)
{
self->runtime.path = g_strdup ("/");
self->runtime.version = g_strdup (self->os_release.build_id);
Loading