summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-03-20 14:29:23 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-03-20 14:29:23 -0400
commit6a0a0675ebf3fb4550b56d8982969d023d8c21ad (patch)
treeb7d8e4adc94ac15b725ec79dc88bbe0abf2b0843 /main.py
parentef469a8036e3b3f129a753dad4cf04fad3ca92f7 (diff)
downloadDecky-Framegen-feat/template-upscaler-defaults.tar.gz
Decky-Framegen-feat/template-upscaler-defaults.zip
feat: set template upscaler defaults for Steam Deckfeat/template-upscaler-defaults
Diffstat (limited to 'main.py')
-rw-r--r--main.py8
1 files changed, 5 insertions, 3 deletions
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}")