Skip to content

Commit

Permalink
Return False instead of throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamscached committed Nov 29, 2024
1 parent 4557c1a commit dc87141
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Monika After Story/game/zz_music_selector.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,23 @@ init -1 python in songs:
display_name - title of the song to show in music selector
by_user (default False) - whether this is an action user has done
(sets the corresponding PM variable)
OUT:
True if path exists and song entry was created, False otherwise.
"""

filepath = path.split(">")[:-1]
if not os.path.exists(filepath):
raise ValueError("{0} does not exist.".format(filepath))
return False

music_choices.append((cleanGUIText(display_name), path))
music_pages = __paginate(music_choices)

if by_user:
store.persistent._mas_pm_added_custom_bgm = True

return True


def _sanitizeVolume(value):
"""
Expand Down

0 comments on commit dc87141

Please sign in to comment.