mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 19:50:12 +01:00
minor bug fixes
This commit is contained in:
@@ -23,10 +23,10 @@ def create_dan(cache_path: Path):
|
|||||||
for i in range(3):
|
for i in range(3):
|
||||||
chart = dict()
|
chart = dict()
|
||||||
chart_path = input(f"Enter chart path {i+1}: ")
|
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)
|
hash_directory = json.load(f)
|
||||||
chart["hash"] = hash_directory.get(chart_path)
|
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)
|
hash_directory = json.load(f)
|
||||||
chart["title"] = hash_directory[chart["hash"]][0]["title"]["en"]
|
chart["title"] = hash_directory[chart["hash"]][0]["title"]["en"]
|
||||||
chart["subtitle"] = hash_directory[chart["hash"]][0]["subtitle"]["en"]
|
chart["subtitle"] = hash_directory[chart["hash"]][0]["subtitle"]["en"]
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class PracticeGameScreen(GameScreen):
|
|||||||
|
|
||||||
first_bar_time = self.bars[0].hit_ms
|
first_bar_time = self.bars[0].hit_ms
|
||||||
resume_time = self.bars[resume_bar_index].hit_ms - first_bar_time + self.start_delay
|
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)
|
tja_copy = copy.deepcopy(self.scrobbling_tja)
|
||||||
self.player_1.tja = tja_copy
|
self.player_1.tja = tja_copy
|
||||||
|
|||||||
Reference in New Issue
Block a user