3#include <Tempest/Platform>
16 pfiles = programFiles(
false);
17 pfilesX86 = programFiles(
true);
19#if defined(__OSX__) || defined(__IOS__)
20 appDir = applicationSupportDirectory();
25#if defined(__WINDOWS__)
30#elif defined(__OSX__) || defined(__IOS__)
42 auto steam = pfiles+u
"/Steam/steamapps/common/Gothic II/";
45 auto akela = pfiles+u
"/Akella Games/Gothic II/";
52std::u16string InstallDetect::programFiles(
bool x86) {
53 WCHAR path[MAX_PATH]={};
54 if(FAILED(SHGetFolderPathW(NULL, (x86 ? CSIDL_PROGRAM_FILESX86 : CSIDL_PROGRAM_FILES), NULL, 0, path)))
58 for(;path[len];++len);
61 std::memcpy(&ret[0],path,len*
sizeof(
char16_t));
std::u16string detectG2()
bool exists(const std::u16string &path)