clarify GetCurrentModulePath's name
This commit is contained in:
parent
5b40d166d2
commit
2eb1eea06e
|
@ -30,7 +30,7 @@ private:
|
||||||
mutable std::array<char,22+1> msg;
|
mutable std::array<char,22+1> msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::wstring GetCurrentModulePath();
|
std::wstring GetExePath();
|
||||||
std::wstring GetShortcutPath();
|
std::wstring GetShortcutPath();
|
||||||
|
|
||||||
#define EXTERN extern "C"
|
#define EXTERN extern "C"
|
||||||
|
|
|
@ -133,7 +133,7 @@ bool ImplEnsureAumiddedShortcutExists(const char *const aumid)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto exePath = GetCurrentModulePath();
|
auto exePath = GetExePath();
|
||||||
auto shortcutPath = GetShortcutPath();
|
auto shortcutPath = GetShortcutPath();
|
||||||
|
|
||||||
auto path = shortcutPath + LR"(\Microsoft\Windows\Start Menu\Programs\Dino.lnk)";
|
auto path = shortcutPath + LR"(\Microsoft\Windows\Start Menu\Programs\Dino.lnk)";
|
||||||
|
|
|
@ -9,7 +9,7 @@ win32_error::win32_error() noexcept
|
||||||
: win32_error{::GetLastError()}
|
: win32_error{::GetLastError()}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::wstring GetCurrentModulePath()
|
std::wstring GetExePath()
|
||||||
{
|
{
|
||||||
std::wstring exePath(MAX_PATH, 0);
|
std::wstring exePath(MAX_PATH, 0);
|
||||||
auto charWritten = GetModuleFileName(nullptr, exePath.data(), exePath.size());
|
auto charWritten = GetModuleFileName(nullptr, exePath.data(), exePath.size());
|
||||||
|
|
Loading…
Reference in a new issue