From 6a0a0675ebf3fb4550b56d8982969d023d8c21ad Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Fri, 20 Mar 2026 14:29:23 -0400 Subject: feat: set template upscaler defaults for Steam Deck --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index ddee8ba..b64f233 100644 --- a/main.py +++ b/main.py @@ -150,7 +150,7 @@ class Plugin: return False def _modify_optiscaler_ini(self, ini_file): - """Modify OptiScaler.ini to set FG defaults, ASI plugin settings, and safe font defaults.""" + """Modify OptiScaler.ini to set FG defaults, ASI plugin settings, and Steam Deck template defaults.""" try: if ini_file.exists(): with open(ini_file, 'r') as f: @@ -168,13 +168,15 @@ class Plugin: # Replace Path=auto with Path=plugins updated_content = re.sub(r'Path\s*=\s*auto', 'Path=plugins', updated_content) - # Disable new HQ font auto mode to avoid missing font assertions on Proton + # Steam Deck template defaults for fresh fgmod installs only. + updated_content = re.sub(r'Dx11Upscaler\s*=\s*auto', 'Dx11Upscaler=fsr31_12', updated_content) + updated_content = re.sub(r'Dx12Upscaler\s*=\s*auto', 'Dx12Upscaler=fsr31', updated_content) updated_content = re.sub(r'UseHQFont\s*=\s*auto', 'UseHQFont=false', updated_content) with open(ini_file, 'w') as f: f.write(updated_content) - decky.logger.info("Modified OptiScaler.ini to set FGType=nukems, Fsr4Update=true, LoadAsiPlugins=true, Path=plugins, UseHQFont=false") + decky.logger.info("Modified OptiScaler.ini to set FGType=nukems, Fsr4Update=true, LoadAsiPlugins=true, Path=plugins, Dx11Upscaler=fsr31_12, Dx12Upscaler=fsr31, UseHQFont=false") return True else: decky.logger.warning(f"OptiScaler.ini not found at {ini_file}") -- cgit v1.2.3