mirror of
https://gitlab.com/GameFeverOnline/mmm-nsf-changer.git
synced 2025-12-17 01:17:43 -04:00
Windows only fix - mute button now works
This commit is contained in:
parent
a785b112c7
commit
0f1a2545d2
2 changed files with 8 additions and 2 deletions
|
|
@ -23,8 +23,10 @@ To use it just launch the executable file (if available for your os) or type "py
|
|||
If you have any issues, which is probable, make a gitlab issue. There may be bugs.
|
||||
|
||||
## Roadmap
|
||||
* add support for choosing a nsf file from a different drive letter (windows only)
|
||||
* add selective mute, so that you mute every music except the boss music, or every song except menu music or both.
|
||||
* figure out the best way to add a setting for changing each of the level editor songs, menu music, or a specific level song. Maybe an extra popup window or a check box for "replace every one" "menu" and "levelBuild"
|
||||
* add a way to change boss music separate from level music and menu music
|
||||
* add a way to show the available nsf files in the selected folder, like a playlist.
|
||||
* add a settings file for the last folder chosen, so if there is a path try to use that so that you don't have to choose it manually
|
||||
* fix slowdown on windows systems
|
||||
|
|
|
|||
|
|
@ -120,7 +120,11 @@ def restore_ogmusic(path):
|
|||
def nsf_changer (nsf_path, megamaker_folder):
|
||||
original_path = check_folder_structure(megamaker_folder)
|
||||
if original_path:
|
||||
if os.path.commonpath([os.path.dirname(nsf_path), os.path.join(megamaker_folder, "Music")]) == os.path.join(megamaker_folder, "Music"):
|
||||
try:
|
||||
common = os.path.commonpath([os.path.dirname(nsf_path), os.path.join(megamaker_folder, "Music")])
|
||||
except ValueError:
|
||||
common = False
|
||||
if common == os.path.join(megamaker_folder, "Music"):
|
||||
restore_ogmusic(megamaker_folder)
|
||||
shutil.copy(nsf_path, os.path.join(megamaker_folder, os.path.basename(nsf_path)))
|
||||
nsf_path = os.path.join(megamaker_folder, os.path.basename(nsf_path))
|
||||
|
|
@ -162,7 +166,7 @@ how_to_use = "I made this tool to be able to change the music for any Mega Man M
|
|||
|
||||
app_version = "v1.1"
|
||||
|
||||
window = sg.Window(f"MMM NSF Music Changer {app_version}", layout, grab_anywhere=True)
|
||||
window = sg.Window(f"MMM NSF Music Changer {app_version}", layout)
|
||||
disclaimer = sg.popup_yes_no('NSF Changer, by Timothy GFO', 'This program is not complete, there WILL be bugs. Use at your own risk.', 'Do you want to continue?')
|
||||
while disclaimer == "Yes":
|
||||
event,values = window.read(timeout=50)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue