mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
more minor bug fixes
This commit is contained in:
@@ -67,7 +67,7 @@ def build_song_hashes(output_dir=Path("cache")):
|
||||
current_hash = path_to_hash.get(tja_path_str)
|
||||
if current_hash is not None:
|
||||
global_data.song_paths[tja_path] = current_hash
|
||||
continue
|
||||
continue
|
||||
current_hash = path_to_hash.get(tja_path_str)
|
||||
if current_hash is None:
|
||||
files_to_process.append(tja_path)
|
||||
@@ -77,6 +77,7 @@ def build_song_hashes(output_dir=Path("cache")):
|
||||
del song_hashes[current_hash]
|
||||
del path_to_hash[tja_path_str]
|
||||
|
||||
|
||||
# Prepare database connection for updates
|
||||
db_path = Path("scores.db")
|
||||
db_updates = [] # Store updates to batch process later
|
||||
|
||||
@@ -397,9 +397,9 @@ class TJAParser:
|
||||
notes_minus_2 = play_note_list[-2]
|
||||
|
||||
consecutive_ones = (
|
||||
notes_minus_4.type == '1' and
|
||||
notes_minus_3.type == '1' and
|
||||
notes_minus_2.type == '1'
|
||||
notes_minus_4.type == 1 and
|
||||
notes_minus_3.type == 1 and
|
||||
notes_minus_2.type == 1
|
||||
)
|
||||
|
||||
if consecutive_ones:
|
||||
@@ -414,7 +414,7 @@ class TJAParser:
|
||||
spacing_after = play_note_list[-1].hit_ms - play_note_list[-2].hit_ms >= (ms_per_measure / 8)
|
||||
|
||||
if spacing_before and spacing_after:
|
||||
play_note_list[-3].moji = se_notes[play_note_list[-3].moji][2]
|
||||
play_note_list[-3].moji = se_notes[1][2]
|
||||
else:
|
||||
play_note_list[-3].moji = se_notes[play_note_list[-3].moji][2]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user