mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-21 19:22:13 -08:00
Compare commits
2 Commits
4d97c94aa4
...
46f8627ce2
Author | SHA1 | Date | |
---|---|---|---|
|
46f8627ce2 | ||
|
a314e51b1f |
@ -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++
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user