feat: removed 3.7.0 workaround

This commit is contained in:
Observer KRypt0n_ 2023-06-09 21:15:46 +02:00
parent 18b00516e8
commit 1018cb09b5
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -22,7 +22,7 @@ pub fn download_diff(sender: ComponentSender<App>, progress_bar_input: Sender<Pr
diff = diff.with_temp_folder(temp); diff = diff.with_temp_folder(temp);
} }
let result = diff.install_to(&game_path, clone!(@strong sender => move |state| { let result = diff.install_to(game_path, clone!(@strong sender => move |state| {
match &state { match &state {
DiffUpdate::InstallerUpdate(InstallerUpdate::DownloadingError(err)) => { DiffUpdate::InstallerUpdate(InstallerUpdate::DownloadingError(err)) => {
tracing::error!("Downloading failed: {err}"); tracing::error!("Downloading failed: {err}");
@ -65,13 +65,6 @@ pub fn download_diff(sender: ComponentSender<App>, progress_bar_input: Sender<Pr
perform_on_download_needed = false; perform_on_download_needed = false;
} }
// Temporary workaround for 3.7.0 game update
let telemetry_file = game_path.join(config.launcher.edition.data_folder()).join("Plugins/Telemetry.dll");
if telemetry_file.exists() {
std::fs::remove_file(telemetry_file).unwrap();
}
sender.input(AppMsg::SetDownloading(false)); sender.input(AppMsg::SetDownloading(false));
sender.input(AppMsg::UpdateLauncherState { sender.input(AppMsg::UpdateLauncherState {
perform_on_download_needed, perform_on_download_needed,