fix: keep the shader pre-caching choice until a session confirms it, and read it from its own VDF section

This commit is contained in:
Kurt Himebauch committed 2026-10-23 13:05:04 -04:00
1 parent f88227ed74
commit b76f13f7ac
6 files changed
+58 -13

No files matched your search

@@ -106,6 +106,14 @@ class SteamStorageTest {
assertEquals(false, SteamStorage.shaderPrecache(vdf))
assertEquals(true, SteamStorage.shaderPrecache(vdf.replace("\"DisableShaderCache\"\t\t\"1\"", "\"DisableShaderCache\"\t\t\"0\"")))
assertEquals(true, SteamStorage.shaderPrecache("\"InstallConfigStore\" {}"))
assertEquals(true, SteamStorage.shaderPrecache("""
"InstallConfigStore"
{
// "DisableShaderCache" "1"
"Other" { "DisableShaderCache" "1" }
"Software" { "Valve" { "Steam" { "ShaderCacheManager" { "DisableShaderCache" "0" } } } }
}
""".trimIndent()))
}
@Test fun readsCustomToolName() {