diff options
Diffstat (limited to 'games-simulation/singularity/files/singularity-0.26a-musicdir.patch')
-rw-r--r-- | games-simulation/singularity/files/singularity-0.26a-musicdir.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/games-simulation/singularity/files/singularity-0.26a-musicdir.patch b/games-simulation/singularity/files/singularity-0.26a-musicdir.patch deleted file mode 100644 index 3a80f1e31d65..000000000000 --- a/games-simulation/singularity/files/singularity-0.26a-musicdir.patch +++ /dev/null @@ -1,32 +0,0 @@ -Index: code/g.py -=================================================================== ---- code/g.py (revision 406) -+++ code/g.py (revision 407) -@@ -142,14 +142,21 @@ - musicarray = [] - musicarraylen=0 - musicpath=path.join(data_loc, "..", "music") -+ default_music_available = True - if not path.isdir(musicpath): -- makedirs(musicpath) -- temp_ls = listdir(musicpath) -- temp_ls_len = len(temp_ls) -- for file_name in temp_ls: -- if file_name[-3:] == "ogg" or file_name[-3:] == "mp3": -- musicarray.append(path.join(musicpath, file_name)) -+ try: -+ makedirs(musicpath) -+ except: - -+ # We don't have permission to write here. Don't bother -+ # trying to load music. -+ default_music_available = False -+ -+ if default_music_available: -+ for file_name in listdir(musicpath): -+ if file_name[-3:] == "ogg" or file_name[-3:] == "mp3": -+ musicarray.append(path.join(musicpath, file_name)) -+ - #also, grab any user files - musicpath=path.join(get_save_folder(True), "music") - if not path.isdir(musicpath): |