standardpaths/standardpaths.hpp
Christopher Arndt 9cc2cf2460 Import initial code
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
2023-07-14 06:30:03 +02:00

25 lines
454 B
C++

#pragma once
#ifdef _WIN32
#include <windows.h>
#include <knownfolders.h>
#include <shlobj.h>
#include "cutf.h"
#else
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#endif
#include <cstdlib>
#include <filesystem>
#ifdef _WIN32
std::filesystem::path getWindowsDirectory(void);
std::filesystem::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid);
#endif
std::filesystem::path getHomeDir();
std::filesystem::path getUserConfigDir();