I am using a Parallel Desktop Win10 on Mac and the VS keeps getting the default document folder wrong, Mac instead of Windows.
I force it to be like this and it works now.
const TCHAR* FWindowsPlatformProcess::UserDir()
{
static FString WindowsUserDir;
if( !WindowsUserDir.Len() )
{
TCHAR* UserPath;
// get the My Documents directory
HRESULT Ret = SHGetKnownFolderPath(FOLDERID_Documents, 0, NULL, &UserPath);
if (SUCCEEDED(Ret))
{
// make the base user dir path
WindowsUserDir = FString("C:\\Users\\<myuser>\\Documents").Replace(TEXT("\\"), TEXT("/")) + TEXT("/");
CoTaskMemFree(UserPath);
}
}
return *WindowsUserDir;
}