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 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 SDVX4Path = ""
var SDVX5Path = "" var SDVX5Path = ""
var browser = "brave.exe" var browser = "brave.exe"

View file

@ -100,14 +100,14 @@
</script> </script>
<script> <script>
var vers = 0; var vers = 0;
const { execFile, exec } = 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); spawn(SDVX3Path);
setTimeout(function(){ setTimeout(function(){
exec("taskkill /im " + browser) exec("taskkill /im " + browser)
},1200) },1200)
@ -115,14 +115,14 @@
break; break;
case 4: case 4:
execFile(AsphyxiaPath); execFile(AsphyxiaPath);
execFile(SDVX4Path); spawn(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);
execFile(SDVX5Path); spawn(SDVX5Path);
setTimeout(function(){ setTimeout(function(){
exec("taskkill /im " + browser) exec("taskkill /im " + browser)
},1200) },1200)