mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Fix macOS builds
This commit is contained in:
parent
771f3c49e5
commit
b57ea3a229
1 changed files with 7 additions and 1 deletions
|
@ -361,6 +361,11 @@ bool update_manager::handle_rpcs3(const QByteArray& data, bool auto_accept)
|
||||||
{
|
{
|
||||||
m_downloader->update_progress_dialog(tr("Updating RPCS3"));
|
m_downloader->update_progress_dialog(tr("Updating RPCS3"));
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
update_log.error("Unsupported operating system.");
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
|
|
||||||
if (m_expected_size != static_cast<u64>(data.size()))
|
if (m_expected_size != static_cast<u64>(data.size()))
|
||||||
{
|
{
|
||||||
update_log.error("Download size mismatch: %d expected: %d", data.size(), m_expected_size);
|
update_log.error("Download size mismatch: %d expected: %d", data.size(), m_expected_size);
|
||||||
|
@ -582,7 +587,7 @@ bool update_manager::handle_rpcs3(const QByteArray& data, bool auto_accept)
|
||||||
if (res)
|
if (res)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#elif not defined(__APPLE__)
|
#else
|
||||||
|
|
||||||
std::string replace_path = rpcs3::utils::get_executable_path();
|
std::string replace_path = rpcs3::utils::get_executable_path();
|
||||||
if (replace_path.empty())
|
if (replace_path.empty())
|
||||||
|
@ -650,4 +655,5 @@ bool update_manager::handle_rpcs3(const QByteArray& data, bool auto_accept)
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
#endif //def __APPLE__
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue