mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
fix: changes execl to execv for compatibility with checkrt
This commit is contained in:
parent
eb52ac55a7
commit
dd31574b4f
1 changed files with 4 additions and 4 deletions
|
@ -620,8 +620,6 @@ bool update_manager::handle_rpcs3(const QByteArray& data, bool auto_accept)
|
||||||
}
|
}
|
||||||
new_appimage.close();
|
new_appimage.close();
|
||||||
|
|
||||||
unsetenv("APPDIR");
|
|
||||||
|
|
||||||
update_log.success("Successfully updated %s!", replace_path);
|
update_log.success("Successfully updated %s!", replace_path);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -650,9 +648,11 @@ bool update_manager::handle_rpcs3(const QByteArray& data, bool auto_accept)
|
||||||
Emu.CleanUp();
|
Emu.CleanUp();
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
const int ret = _wexecl(wchar_orig_path.data(), L"--updating", nullptr);
|
const int ret = _wexecl(wchar_orig_path.data(), wchar_orig_path.data(), L"--updating", nullptr);
|
||||||
#else
|
#else
|
||||||
const int ret = execl(replace_path.c_str(), "--updating", nullptr);
|
// execv is used for compatibility with checkrt
|
||||||
|
const char * const params[3] = { replace_path.c_str(), "--updating", nullptr };
|
||||||
|
const int ret = execv(replace_path.c_str(), const_cast<char * const *>(¶ms[0]));
|
||||||
#endif
|
#endif
|
||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue