Compare commits

...

2 commits

Author SHA1 Message Date
7ecf57c7c0 Merge branch 'main' into tappyplane 2025-07-02 11:49:56 +02:00
Hartmut Seichter
f3d44720a6 fix for returning executable path on Windows 2025-07-01 22:20:42 +02:00
27 changed files with 1 additions and 1 deletions

View file

@ -37,7 +37,7 @@ path get_executable_path() {
#if defined(_WIN32)
std::array<TCHAR, MAX_PATH> lpFname{};
DWORD ret = GetModuleFileName(NULL, lpFname.data(), lpFname.size());
return {std::string{std::from_range, lpFname}};
return {std::string{std::begin(lpFname), std::end(lpFname)}};
#elif defined(__linux)
return std::filesystem::canonical(u8"/proc/self/exe");
#endif