Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Add extraction user sound from previous_version/sound to game_dir/sound #513

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

yukhymenko-yurii
Copy link

@yukhymenko-yurii yukhymenko-yurii commented Nov 24, 2020

After update game, user sound (game_dir/sound), not been extracted from previous_version/sound.

@yukhymenko-yurii yukhymenko-yurii changed the title Add extraction user sound from previous_version/sound to game_gir/sound Add extraction user sound from previous_version/sound to game_dir/sound Nov 24, 2020
@yukhymenko-yurii
Copy link
Author

In addition I fixed problem when extraction from previous_version more then one soundpack was interrupted in post_extraction_step3

@remyroy
Copy link
Owner

remyroy commented Nov 27, 2020

I should be able to review and test this soon.

@yukhymenko-yurii
Copy link
Author

yukhymenko-yurii commented Nov 27, 2020

copy_next_soundpack runs as callback of ProgressCopyTree so post_extraction_step3 executing and set in_post_extraction to False before all done

@yukhymenko-yurii
Copy link
Author

yukhymenko-yurii commented Nov 27, 2020

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
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants