- Added changelog screen

- Fixed console printing thread safety
This commit is contained in:
EricPlayZ
2024-02-13 03:39:56 +02:00
parent b7e000176a
commit a94c16747b
11 changed files with 129 additions and 126 deletions
+9 -2
View File
@@ -2,20 +2,27 @@
namespace Utils {
namespace Files {
const std::string_view GetDesktopDir() {
const std::string GetDesktopDir() {
char path[MAX_PATH + 1]{};
if (!SHGetSpecialFolderPathA(HWND_DESKTOP, path, CSIDL_DESKTOP, FALSE))
return {};
return path;
}
const std::string_view GetDocumentsDir() {
const std::string GetDocumentsDir() {
char path[MAX_PATH + 1]{};
if (SHGetFolderPathA(nullptr, CSIDL_MYDOCUMENTS, nullptr, SHGFP_TYPE_CURRENT, path) != S_OK)
return {};
return path;
}
const std::string GetLocalAppDataDir() {
char path[MAX_PATH + 1]{};
if (SHGetFolderPathA(nullptr, CSIDL_LOCAL_APPDATA, nullptr, SHGFP_TYPE_CURRENT, path) != S_OK)
return {};
return path;
}
const std::filesystem::path GetCurrentProcDirectoryFS() {
char buffer[MAX_PATH];
GetModuleFileNameA(nullptr, buffer, sizeof(buffer));