Skip to content

Commit

Permalink
Beatmap: windows is retarded
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunko committed Dec 13, 2022
1 parent 977d5eb commit e186e61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/objects/beatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ def _parse_beatmap_file_from_path(path: Path) -> dict[str, dict[str, str]]:
data: dict[str, dict[str, str]] = {}
category: str = ""

for line in path.read_text().splitlines():
# NOTE: in linux this works just fine
# but on windows thing just shits the bed, fuck you windows.
for line in (
path.read_bytes().decode(encoding="utf-8", errors="ignore").splitlines()
):
if not line.strip():
continue

Expand Down

0 comments on commit e186e61

Please sign in to comment.