Compare commits

..

1 Commits

Author SHA1 Message Date
Ulysse Gressé-Lugué
4d97c94aa4
Merge f08bbcc3e0 into eb683f89ec 2024-05-07 20:05:37 +02:00

View File

@ -474,15 +474,18 @@ class ProcessBuilder {
if(rule.features.has_custom_resolution != null && rule.features.has_custom_resolution === true){
if(ConfigManager.getFullscreen()){
logger.info("gamedir: ", this.gameDir)
WriteFullscreenToOptions(path.join(this.gameDir, "options.txt"), 'fullscreen:false', 'fullscreen:true')
const filePath = path.join(this.gameDir, "options.txt");
const lineToReplace = 'fullscreen:false';
const newLine = 'fullscreen:true';
WriteFullscreenToOptions(filePath, lineToReplace, newLine);
args[i].value = [
'--fullscreen',
'true'
]
} else {
WriteFullscreenToOptions(path.join(this.gameDir, "options.txt"), 'fullscreen:true', 'fullscreen:false');
}
checksum++
}
}