Skip to content

Commit

Permalink
Fixed non-autolaunch
Browse files Browse the repository at this point in the history
  • Loading branch information
osztenkurden committed Jul 28, 2020
1 parent 217b6f6 commit 5ef7590
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion dist/server/api/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ exports.run = function (req, res) { return __awaiter(void 0, void 0, void 0, fun
}
args = [];
if (!isHLAE) {
args.push('-applaunch 730', "+exec " + req.query.config);
args.push('-applaunch 730');
if (exec) {
args.push(exec);
}
}
else {
args.push('-csgoLauncher', '-noGui', '-autoStart', "-csgoExe \"" + GameExePath + "\"");
Expand Down
5 changes: 4 additions & 1 deletion server/api/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ export const run: express.RequestHandler = async (req, res) => {
const args = [];

if(!isHLAE){
args.push('-applaunch 730', `+exec ${req.query.config}`);
args.push('-applaunch 730');
if(exec) {
args.push(exec);
}
} else {
args.push('-csgoLauncher','-noGui', '-autoStart', `-csgoExe "${GameExePath}"`);
if(exec) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Content/Tabs/Huds/Huds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function createCFG(customRadar: boolean, customKillfeed: boolean, afx: boolean,
cfg += `exec ${createCFG(customRadar, customKillfeed, false)}`;

}
file += '.cfg';
if(!autoexec){
file = '';
}
file += '.cfg';
return { cfg, file };
}

Expand Down Expand Up @@ -89,7 +89,7 @@ export default class Huds extends React.Component<IProps, IState> {
}

runGame = (afx: boolean) => () => {
const config = createCFG(this.state.form.radar, this.state.form.killfeed, this.state.form.afx).file;
const config = createCFG(this.state.form.radar, this.state.form.killfeed, this.state.form.afx, this.state.form.autoexec).file;
if(afx){
return api.game.runExperimental(config);
}
Expand Down

0 comments on commit 5ef7590

Please sign in to comment.