Fix firmware updating/reinstallation

This commit is contained in:
Eladash 2021-02-08 18:57:37 +02:00 committed by Megamouse
parent dc2a1e270a
commit e38cd5149a
2 changed files with 7 additions and 10 deletions

View File

@ -116,16 +116,6 @@ bool tar_object::extract(std::string path, std::string ignore)
{
auto data = get_file(header.name).release();
if (fs::file prev{result})
{
if (prev.to_vector<u8>() == static_cast<fs::container_stream<std::vector<u8>>*>(data.get())->obj)
{
// Workaround: avoid overwriting existing data if it's the same.
tar_log.notice("TAR Loader: skipped existing file %s", header.name);
break;
}
}
fs::file file(result, fs::rewrite);
if (file)

View File

@ -35,6 +35,7 @@
#include <QMimeData>
#include <QMessageBox>
#include <QFileDialog>
#include <QFontDatabase>
#include "rpcs3_version.h"
#include "Emu/System.h"
@ -855,6 +856,9 @@ void main_window::HandlePupInstallation(QString file_path)
return;
}
// Remove possibly PS3 fonts from database
QFontDatabase::removeAllApplicationFonts();
progress_dialog pdlg(tr("RPCS3 Firmware Installer"), tr("Installing firmware version %1\nPlease wait...").arg(qstr(version_string)), tr("Cancel"), 0, static_cast<int>(update_filenames.size()), false, this);
pdlg.show();
@ -919,6 +923,9 @@ void main_window::HandlePupInstallation(QString file_path)
}
}
// Update with newly installed PS3 fonts
Q_EMIT RequestGlobalStylesheetChange();
if (progress > 0)
{
gui_log.success("Successfully installed PS3 firmware version %s.", version_string);