-
Notifications
You must be signed in to change notification settings - Fork 105
Add extraction user sound from previous_version/sound to game_dir/sound #513
base: master
Are you sure you want to change the base?
Conversation
In addition I fixed problem when extraction from previous_version more then one soundpack was interrupted in post_extraction_step3 |
I should be able to review and test this soon. |
copy_next_soundpack runs as callback of ProgressCopyTree so post_extraction_step3 executing and set in_post_extraction to False before all done |
Oh, i was wrong. Its was my issue. I revert my changes and move calling post_extraction_step3 to the right place. Sorry. |
] | ||
for soundpacks_dir in soundpacks_dirs: | ||
if os.path.isdir(soundpacks_dir): | ||
self.soundpacks_dir = soundpacks_dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.soundpacks_dir
should probably always remains in os.path.join(new_dir, 'data', 'sound'). It is used in move_new_soundpack for instance. With your code, it will be changed to os.path.join(new_dir, 'sound') after the loop.
After update game, user sound (game_dir/sound), not been extracted from previous_version/sound.