Skip to content

Commit a8b0739

Browse files
Fixed customFlags (GooseMod#142)
1 parent 99cd4f5 commit a8b0739

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cmdSwitches.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const presets = {
99

1010
module.exports = () => {
1111
let c = {};
12-
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' '))).concat((oaConfig.customFlags ?? '').split(' '))) {
12+
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), (oaConfig.customFlags ?? '').split(' '))) {
1313
if (!x) continue;
1414
const [ k, v ] = x.split('=');
1515

@@ -19,4 +19,4 @@ module.exports = () => {
1919
for (const k in c) {
2020
app.commandLine.appendSwitch(k.replace('--', ''), c[k].join(','));
2121
}
22-
};
22+
};

0 commit comments

Comments
 (0)