mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fix firmware updating/reinstallation
This commit is contained in:
parent
dc2a1e270a
commit
e38cd5149a
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user