Skip to content

Commit

Permalink
Update WiiMusicEditorPlus.py
Browse files Browse the repository at this point in the history
  • Loading branch information
notBenjaminHalko committed Dec 28, 2021
1 parent 571abc1 commit 06a4b3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions WiiMusicEditorPlus.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from main_window_ui import Ui_MainWindow

import editor
from editor import PlayRwav, ReplaceWave, SaveRecording, GetDolphinSave, SavePath, HelperPath, ChangeName, GetBrsarPath, GetDefaultStyle, GetGeckoPath, GetMainDolPath, PatchMainDol, CreateGct, DecodeTxt, EncodeTxt, FixMessageFile, Run, GetMessagePath, GivePermission, BasedOnRegion, SaveSetting, LoadSetting, PrepareFile, LoadMidi, PatchBrsar, GetStyles, AddPatch, ChooseFromOS, Instruments, SoundClass, gctRegionOffsets, Songs, Styles, gameIds, gctRegionOffsetsStyles, savePathIds, extraSounds, StyleTypeValue, SongTypeValue, LoadType, RecordType
from editor import PlayRwav, ReplaceWave, SaveRecording, GetDolphinSave, SavePath, HelperPath, ChangeName, GetBrsarPath, GetDefaultStyle, GetGeckoPath, GetMainDolPath, PatchMainDol, CreateGct, DecodeTxt, EncodeTxt, FixMessageFile, Run, GetMessagePath, GivePermission, BasedOnRegion, SaveSetting, LoadSetting, PrepareFile, LoadMidi, PatchBrsar, GetStyles, AddPatch, ChooseFromOS, currentSystem, Instruments, SoundClass, gctRegionOffsets, Songs, Styles, gameIds, gctRegionOffsetsStyles, savePathIds, extraSounds, StyleTypeValue, SongTypeValue, LoadType, RecordType
from update import UpdateWindow, CheckForUpdate
from errorhandler import ShowError
from settings import SettingsWindow, CheckboxSeperateSongPatching
Expand Down Expand Up @@ -912,7 +912,10 @@ def Button_SOE_PlayAudio(self):
if(len(selected) > 1):
playlist = open(SavePath()+"/tmp/playlist.m3u","w")
for i in selected:
playlist.write(SavePath().replace("/","\\")+"\\tmp\\sound"+str(i)+".rwav.wav\n")
if(currentSystem == "Windows"):
playlist.write(SavePath().replace("/","\\")+"\\tmp\\sound"+str(i)+".rwav.wav\n")
else:
playlist.write(SavePath()+"/tmp/sound"+str(i)+".rwav.wav\n")
playlist.close()
subprocess.Popen(ChooseFromOS(["","open ","xdg-open "])+'"'+SavePath()+'/tmp/playlist.m3u"',shell=True)
else:
Expand Down

0 comments on commit 06a4b3f

Please sign in to comment.