Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit dfe67a2

Browse files
committed
fix: Android file path when loading beatmap
1 parent 702b486 commit dfe67a2

6 files changed

Lines changed: 1 addition & 1 deletion

File tree

game/images/others/avotoast.png

105 KB
Loading
80.2 KB
Loading

game/images/others/ketchup.png

38.2 KB
Loading

game/images/others/macncheese.png

61 KB
Loading

game/images/others/nuggets.png

86.9 KB
Loading

game/scripts/rhythm_minigame.rpy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ init python:
132132
def read_beatmap_file(beatmap_path):
133133
# read newline separated floats
134134
beatmap_path_full = os.path.join(config.gamedir, beatmap_path)
135-
with open(beatmap_path_full, 'rt') as f:
135+
with renpy.file(beatmap_path) as f:
136136
text = f.read()
137137
onset_times = [float(string) for string in text.split('\n') if string != '']
138138
return onset_times

0 commit comments

Comments
 (0)