mirror of
https://github.com/360NENZ/Taiga74164-Akebi-GC.git
synced 2025-09-19 12:16:20 +08:00
fix config path
This commit is contained in:
@ -62,6 +62,14 @@ namespace util
|
||||
return (*c);
|
||||
}
|
||||
|
||||
std::string GetModulePath(HMODULE hModule /*= nullptr*/)
|
||||
{
|
||||
char pathOut[MAX_PATH] = {};
|
||||
GetModuleFileNameA(hModule, pathOut, MAX_PATH);
|
||||
|
||||
return std::filesystem::path(pathOut).parent_path().string();
|
||||
}
|
||||
|
||||
std::optional<std::string> SelectDirectory(const char* title)
|
||||
{
|
||||
auto currPath = std::filesystem::current_path();
|
||||
|
@ -36,6 +36,8 @@ namespace util
|
||||
std::string GetLastErrorAsString(DWORD errorId = 0);
|
||||
int64_t GetCurrentTimeMillisec();
|
||||
|
||||
std::string GetModulePath(HMODULE hModule = nullptr);
|
||||
|
||||
std::vector<std::string> StringSplit(const std::string& delimiter, const std::string& content);
|
||||
std::string SplitWords(const std::string& value);
|
||||
std::string MakeCapital(std::string value);
|
||||
|
Reference in New Issue
Block a user