Compare commits

...

2 Commits

Author SHA1 Message Date
Ulysse Gressé-Lugué
46f8627ce2
Merge a314e51b1f into eb683f89ec 2024-05-23 11:22:19 +00:00
Ulysse Gressé-Lugué
a314e51b1f
Update processbuilder.js 2024-05-23 13:22:16 +02:00

View File

@ -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++
}
}