mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
windows: fix restart with spaces in exe filename
This commit is contained in:
parent
2d13d4f84f
commit
223f168fb0
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ void geode::utils::game::restart() {
|
|||
|
||||
wchar_t buffer[MAX_PATH];
|
||||
GetModuleFileNameW(nullptr, buffer, MAX_PATH);
|
||||
const auto gdName = ghc::filesystem::path(buffer).filename().string();
|
||||
const auto gdName = fmt::format("\"{}\"", ghc::filesystem::path(buffer).filename().string());
|
||||
|
||||
// launch updater
|
||||
const auto updaterPath = (workingDir / "GeodeUpdater.exe").string();
|
||||
|
|
Loading…
Reference in a new issue