summaryrefslogtreecommitdiff
path: root/src/main/manaplus/manaplus.ts
diff options
context:
space:
mode:
authorLawnCable <lawncable.tmw2@simonlaux.de>2018-09-26 19:07:54 +0200
committerLawnCable <lawncable.tmw2@simonlaux.de>2018-09-26 19:07:54 +0200
commit250414f683db01f37194eb04070093b56e2ea67c (patch)
tree5a7e4bb2c9120300b8d9dd84426f5b09ce9f6416 /src/main/manaplus/manaplus.ts
parente8acae284d9c5030522e97319244b8a0941d7c61 (diff)
downloadelectron-250414f683db01f37194eb04070093b56e2ea67c.tar.gz
electron-250414f683db01f37194eb04070093b56e2ea67c.tar.bz2
electron-250414f683db01f37194eb04070093b56e2ea67c.tar.xz
electron-250414f683db01f37194eb04070093b56e2ea67c.zip
added possibility to start manaplus without any server preselected
Diffstat (limited to 'src/main/manaplus/manaplus.ts')
-rw-r--r--src/main/manaplus/manaplus.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/manaplus/manaplus.ts b/src/main/manaplus/manaplus.ts
index 2f028b8..0c56b7d 100644
--- a/src/main/manaplus/manaplus.ts
+++ b/src/main/manaplus/manaplus.ts
@@ -109,7 +109,7 @@ function wasInitilized(){
async function makeParams(server: any,port: any,engine: any,username?: any,password?: any):Promise<string[]>{
let parameters:string[] = [];
- if(server && engine && port){
+ if(server && engine && port && server != 'noServer'){
parameters.push(...[
"-s", server,
"-y", engine,
@@ -134,7 +134,7 @@ async function makeParams(server: any,port: any,engine: any,username?: any,passw
"-L", localDataDir,
"--screenshot-dir", screenshotsDir,
]);
- //console.log(parameters);
+ console.log(parameters);
return parameters;
}