Skip to content

Commit

Permalink
fix mii errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jozz024 committed Sep 20, 2023
1 parent 77e788d commit cd51bb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,13 @@ def main():
elif event == "Dump Mii":
# Open a popup for the user to pick a dump destination, and then dump the mii
path = filedialog.asksaveasfilename(defaultextension='.bin', filetypes=(('BIN files', '*.bin'),))
if path == "":
continue
amiibo.dump_mii(path)
elif event == "Load Mii":
mii_path = filedialog.askopenfilename(filetypes=(('BIN files', '*.bin'),))
if mii_path == "":
continue
# Attempt to set the Mii, and present a popup if the mii size is wrong
try:
amiibo.set_mii(mii_path)
Expand Down

0 comments on commit cd51bb0

Please sign in to comment.