Skip to content

Commit

Permalink
Fix Load and Play Preset
Browse files Browse the repository at this point in the history
  • Loading branch information
smoralis committed Sep 13, 2020
1 parent 4a7bce8 commit 60a96d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion profile/themes/footuner/js/quickpresets.js
Expand Up @@ -46,7 +46,10 @@ function buttonss() {

function play(filename) {
if (filename) {
let cmd = "\"" + fb.FoobarPath + "foobar2000.exe" + "\"" + "/run_main:\"View/Switch to playlist/Presets Playlist\" /run_main:Edit/Clear /add /immediate /play " + "\"" + filename + "\"";
let cmd = "\"" + fb.FoobarPath + "foobar2000.exe" + "\"" + "/run_main:\"View/Switch to playlist/Presets Playlist\" /run_main:Edit/Clear /add /immediate " + "\"" + filename + "\"";
console.log(cmd);
WshShell.Run(cmd, 0, true);
cmd = "\"" + fb.FoobarPath + "foobar2000.exe" + "\"" + " /play " + "\"" + filename + "\"";
console.log(cmd);
WshShell.Run(cmd, 0, true);
}
Expand Down

0 comments on commit 60a96d4

Please sign in to comment.