25 lines
454 B
C++
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();
|