diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f718222..7f92ba3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -45,7 +45,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) addToast({ title: `电源计划已切换 → ${PowerPlans[current].title}` }) }) - }) + }, []) // 检测steam路径和游戏路径是否有效 const debounceSteamDir = useDebounce(steam.state.steamDir, { diff --git a/src/components/cstb/VideoSetting.tsx b/src/components/cstb/VideoSetting.tsx index f70f7b4..94ae728 100644 --- a/src/components/cstb/VideoSetting.tsx +++ b/src/components/cstb/VideoSetting.tsx @@ -166,16 +166,16 @@ const VideoSetting = () => { }, }, { - type: "videocfg_hdr_detail", + type: "shaderquality", title: "光影细节", - value: video.videocfg_hdr_detail === "-1" ? "高" : "低", + value: video.shaderquality === "1" ? "高" : "低", options: ["低", "高"], mapping: (value: string) => { return ( { - 低: "3", - 高: "-1", - }[value] || "3" + 低: "0", + 高: "1", + }[value] || "0" ) }, }, @@ -210,6 +210,20 @@ const VideoSetting = () => { ) }, }, + { + type: "videocfg_hdr_detail", + title: "高动态范围", + value: video.videocfg_hdr_detail === "-1" ? "品质" : "性能", + options: ["性能", "品质"], + mapping: (value: string) => { + return ( + { + 性能: "3", + 品质: "-1", + }[value] || "3" + ) + }, + }, { type: "videocfg_fsr_detail", title: "Fidelity FX 超级分辨率", diff --git a/src/store/tool.ts b/src/store/tool.ts index 631d2e4..ea1570f 100644 --- a/src/store/tool.ts +++ b/src/store/tool.ts @@ -29,7 +29,7 @@ export interface VideoSetting { fullscreen_min_on_focus_loss: string; // 失去焦点时最小化全屏 high_dpi: string; // 高DPI auto_config: string; // 自动配置 - shaderquality: string; // 着色器质量 + shaderquality: string; // 光影质量 r_texturefilteringquality: string; // 纹理过滤质量 msaa_samples: string; // 多重采样抗锯齿样本数 r_csgo_cmaa_enable: string; // CMAA抗锯齿启用