From 1efc734a96c1a248a1541c1a09abb610e382ece0 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Sun, 23 Nov 2025 11:03:17 -0500 Subject: [PATCH] minor bug fixes --- dan_creator.py | 4 ++-- scenes/practice/game.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dan_creator.py b/dan_creator.py index 1dbcc32..0d8e236 100644 --- a/dan_creator.py +++ b/dan_creator.py @@ -23,10 +23,10 @@ def create_dan(cache_path: Path): for i in range(3): chart = dict() chart_path = input(f"Enter chart path {i+1}: ") - with open(f"{cache_path}/path_to_hash.json") as f: + with open(f"{cache_path}/path_to_hash.json", encoding='utf-8') as f: hash_directory = json.load(f) chart["hash"] = hash_directory.get(chart_path) - with open(f"{cache_path}/song_hashes.json") as f: + with open(f"{cache_path}/song_hashes.json", encoding='utf-8') as f: hash_directory = json.load(f) chart["title"] = hash_directory[chart["hash"]][0]["title"]["en"] chart["subtitle"] = hash_directory[chart["hash"]][0]["subtitle"]["en"] diff --git a/scenes/practice/game.py b/scenes/practice/game.py index a380638..aa5c3ff 100644 --- a/scenes/practice/game.py +++ b/scenes/practice/game.py @@ -73,7 +73,7 @@ class PracticeGameScreen(GameScreen): first_bar_time = self.bars[0].hit_ms resume_time = self.bars[resume_bar_index].hit_ms - first_bar_time + self.start_delay - start_time = self.bars[previous_bar_index].hit_ms - first_bar_time + start_time = self.bars[previous_bar_index].hit_ms - first_bar_time + self.start_delay tja_copy = copy.deepcopy(self.scrobbling_tja) self.player_1.tja = tja_copy