mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Compare commits
1 Commits
46f8627ce2
...
4d97c94aa4
Author | SHA1 | Date | |
---|---|---|---|
|
4d97c94aa4 |
@ -474,15 +474,18 @@ class ProcessBuilder {
|
|||||||
if(rule.features.has_custom_resolution != null && rule.features.has_custom_resolution === true){
|
if(rule.features.has_custom_resolution != null && rule.features.has_custom_resolution === true){
|
||||||
if(ConfigManager.getFullscreen()){
|
if(ConfigManager.getFullscreen()){
|
||||||
logger.info("gamedir: ", this.gameDir)
|
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 = [
|
args[i].value = [
|
||||||
'--fullscreen',
|
'--fullscreen',
|
||||||
'true'
|
'true'
|
||||||
]
|
]
|
||||||
} else {
|
|
||||||
WriteFullscreenToOptions(path.join(this.gameDir, "options.txt"), 'fullscreen:true', 'fullscreen:false');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checksum++
|
checksum++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user