This commit is contained in:
2025-02-19 12:13:15 -06:00
parent 1d3585bf79
commit 903a4d555e

View File

@@ -41,7 +41,7 @@ auto change_to_process_directory() -> bool {
::GetModuleFileNameA(nullptr, file_name.data(), ::GetModuleFileNameA(nullptr, file_name.data(),
static_cast<DWORD>(file_name.size() - 1U)); static_cast<DWORD>(file_name.size() - 1U));
auto path = utils::path::strip_to_file_name(file_name.c_str()); auto path = utils::path::get_parent_path(file_name.c_str());
::SetCurrentDirectoryA(path.c_str()); ::SetCurrentDirectoryA(path.c_str());
#else // !defined(_WIN32) #else // !defined(_WIN32)
std::string path; std::string path;