mirror of
https://github.com/danbulant/arcade-machine
synced 2026-07-05 02:50:33 +00:00
Added SDVX commandline to launch in background with "start /b"
This commit is contained in:
parent
52a68e67b6
commit
c9dacb89bc
1 changed files with 14 additions and 13 deletions
|
|
@ -104,32 +104,32 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
var vers = 0;
|
var vers = 0; /* Handles Running of apps */
|
||||||
const { execFile, exec, spawn } = require('child_process');
|
const { execFile, exec, spawn } = require('child_process');
|
||||||
function sdvx(){
|
function sdvx() {
|
||||||
console.log("promenna",vers);
|
console.log("promenna", vers);
|
||||||
switch (vers) {
|
switch (vers) {
|
||||||
case 3:
|
case 3:
|
||||||
execFile(AsphyxiaPath);
|
execFile(AsphyxiaPath);
|
||||||
execFile(SDVX3Path);
|
exec("start /b " + SDVX3Path);
|
||||||
setTimeout(function(){
|
setTimeout(function () {
|
||||||
spawn("taskkill /im " + browser)
|
exec("taskkill /im " + browser)
|
||||||
},1200)
|
}, 2000)
|
||||||
//console.log(vers);
|
//console.log(vers);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
execFile(AsphyxiaPath);
|
execFile(AsphyxiaPath);
|
||||||
exec(SDVX4Path);
|
exec("start /b " + SDVX4Path);
|
||||||
setTimeout(function(){
|
setTimeout(function () {
|
||||||
exec("taskkill /im " + browser)
|
exec("taskkill /im " + browser)
|
||||||
},1200)
|
}, 1200)
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
execFile(AsphyxiaPath);
|
execFile(AsphyxiaPath);
|
||||||
spawn(SDVX5Path);
|
exec("start /b " + SDVX5Path);
|
||||||
setTimeout(function(){
|
setTimeout(function () {
|
||||||
exec("taskkill /im " + browser)
|
exec("taskkill /im " + browser)
|
||||||
},1200)
|
}, 1200)
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
|
|
||||||
|
|
@ -140,4 +140,5 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in a new issue