mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-09 08:21:18 +12:00
Remove dependency on boost::dll and boost::range
This commit is contained in:
parent
80953fe603
commit
41f2c27229
8 changed files with 31 additions and 37 deletions
|
@ -471,13 +471,13 @@ void CemuUpdateWindow::WorkerThread()
|
|||
break;
|
||||
|
||||
// apply update
|
||||
fs::path exePath = fs::path(wxStandardPaths::Get().GetExecutablePath().ToStdString());
|
||||
fs::path exePath = ActiveSettings::GetExecutablePath();
|
||||
std::wstring target_directory = exePath.parent_path().generic_wstring();
|
||||
if (target_directory[target_directory.size() - 1] == '/')
|
||||
target_directory = target_directory.substr(0, target_directory.size() - 1); // remove trailing /
|
||||
|
||||
// get exe name
|
||||
const auto exec = ActiveSettings::GetFullPath();
|
||||
const auto exec = ActiveSettings::GetExecutablePath();
|
||||
const auto target_exe = fs::path(exec).replace_extension("exe.backup");
|
||||
fs::rename(exec, target_exe);
|
||||
m_restartFile = exec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue