mirror of
https://github.com/danbulant/arcade-machine
synced 2026-06-18 05:51:24 +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>
|
||||
var vers = 0;
|
||||
var vers = 0; /* Handles Running of apps */
|
||||
const { execFile, exec, spawn } = require('child_process');
|
||||
function sdvx(){
|
||||
console.log("promenna",vers);
|
||||
function sdvx() {
|
||||
console.log("promenna", vers);
|
||||
switch (vers) {
|
||||
case 3:
|
||||
execFile(AsphyxiaPath);
|
||||
execFile(SDVX3Path);
|
||||
setTimeout(function(){
|
||||
spawn("taskkill /im " + browser)
|
||||
},1200)
|
||||
exec("start /b " + SDVX3Path);
|
||||
setTimeout(function () {
|
||||
exec("taskkill /im " + browser)
|
||||
}, 2000)
|
||||
//console.log(vers);
|
||||
break;
|
||||
case 4:
|
||||
execFile(AsphyxiaPath);
|
||||
exec(SDVX4Path);
|
||||
setTimeout(function(){
|
||||
exec("start /b " + SDVX4Path);
|
||||
setTimeout(function () {
|
||||
exec("taskkill /im " + browser)
|
||||
},1200)
|
||||
}, 1200)
|
||||
break;
|
||||
case 5:
|
||||
execFile(AsphyxiaPath);
|
||||
spawn(SDVX5Path);
|
||||
setTimeout(function(){
|
||||
exec("start /b " + SDVX5Path);
|
||||
setTimeout(function () {
|
||||
exec("taskkill /im " + browser)
|
||||
},1200)
|
||||
}, 1200)
|
||||
break;
|
||||
case 6:
|
||||
|
||||
|
|
@ -140,4 +140,5 @@
|
|||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in a new issue