feat(genshin): removed 3.5-3.6 audio folder migration

This commit is contained in:
Observer KRypt0n_ 2023-06-18 09:28:11 +02:00
parent 01486e00a4
commit b2efa4a5a7
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -88,23 +88,6 @@ impl LauncherState {
let game = Game::new(&params.game_path, params.game_edition); let game = Game::new(&params.game_path, params.game_edition);
// Check if game is installed
if game.is_installed() {
let data_folder = params.game_path.join(params.game_edition.data_folder());
let old_audio_folder_base = data_folder.join("StreamingAssets/Audio");
let old_audio_folder = old_audio_folder_base.join("GeneratedSoundBanks/Windows");
// Migrate pre-3.6 voiceovers format to post-3.6
if old_audio_folder.exists() {
return Ok(Self::FolderMigrationRequired {
from: old_audio_folder,
to: data_folder.join("StreamingAssets/AudioAssets"),
cleanup_folder: Some(old_audio_folder_base)
});
}
}
let diff = game.try_get_diff()?; let diff = game.try_get_diff()?;
match diff { match diff {