minor changes

This commit is contained in:
Vaclav Siml 2023-02-23 23:37:44 +01:00
parent 9b38b4fd95
commit d7505c4e28
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
var AsphyxiaPath = "C:\\Users\\kryvas\\Downloads\\asphyxia-core-win-x64\\asphyxia.exe"
var SDVX3Path = "C:\\test\\cmd2.exe"
var SDVX3Path = "C:\\Users\\kryvas\\Downloads\\sdvx\\Sound voltex iii gravity wars\\spice.exe"
var SDVX4Path = ""
var SDVX5Path = ""
var browser = "brave.exe"

View file

@ -100,14 +100,14 @@
</script>
<script>
var vers = 0;
const { execFile, exec } = require('child_process');
const { execFile, exec, spawn } = require('child_process');
function sdvx(){
console.log("promenna",vers);
switch (vers) {
case 3:
execFile(AsphyxiaPath);
execFile(SDVX3Path);
spawn(SDVX3Path);
setTimeout(function(){
exec("taskkill /im " + browser)
},1200)
@ -115,14 +115,14 @@
break;
case 4:
execFile(AsphyxiaPath);
execFile(SDVX4Path);
spawn(SDVX4Path);
setTimeout(function(){
exec("taskkill /im " + browser)
},1200)
break;
case 5:
execFile(AsphyxiaPath);
execFile(SDVX5Path);
spawn(SDVX5Path);
setTimeout(function(){
exec("taskkill /im " + browser)
},1200)