Fix macOS builds

This commit is contained in:
nastys 2022-02-21 14:35:15 +01:00 committed by Megamouse
parent 771f3c49e5
commit b57ea3a229

View File

@ -361,6 +361,11 @@ bool update_manager::handle_rpcs3(const QByteArray& data, bool auto_accept)
{
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()))
{
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)
return false;
#elif not defined(__APPLE__)
#else
std::string replace_path = rpcs3::utils::get_executable_path();
if (replace_path.empty())
@ -650,4 +655,5 @@ bool update_manager::handle_rpcs3(const QByteArray& data, bool auto_accept)
}
return true;
#endif //def __APPLE__
}