diff --git a/app/assets/js/processbuilder.js b/app/assets/js/processbuilder.js index 1b4fa7f1..857d68bc 100644 --- a/app/assets/js/processbuilder.js +++ b/app/assets/js/processbuilder.js @@ -474,18 +474,15 @@ class ProcessBuilder { if(rule.features.has_custom_resolution != null && rule.features.has_custom_resolution === true){ if(ConfigManager.getFullscreen()){ logger.info("gamedir: ", this.gameDir) - - const filePath = path.join(this.gameDir, "options.txt"); - const lineToReplace = 'fullscreen:false'; - const newLine = 'fullscreen:true'; - - WriteFullscreenToOptions(filePath, lineToReplace, newLine); - + WriteFullscreenToOptions(path.join(this.gameDir, "options.txt"), 'fullscreen:false', 'fullscreen:true') args[i].value = [ '--fullscreen', 'true' ] + } else { + WriteFullscreenToOptions(path.join(this.gameDir, "options.txt"), 'fullscreen:true', 'fullscreen:false'); } + checksum++ } }