Skip to content
Snippets Groups Projects
Commit 4185a736 authored by Lab1's avatar Lab1
Browse files

slightly change when search paths to the tmp folder are added, otherwise it...

slightly change when search paths to the tmp folder are added, otherwise it always fails on the first time starting an app
parent a9a2e30a
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,9 @@ bool FVAServerLauncher::SendFileToVAServer(const FString& RelativeFilename)
if(BytesRead==3 && Response[0]=='a' && Response[1]=='c' && Response[2]=='k')
{
FVAUtils::LogStuff("[FVAServerLauncher::SendFileToVAServer()]: File was received by VAServerLauncher successfully!", false);
//the search path is added potenitally multiple times, but can only be added once the folder is created (which the above guarantees)
const std::string SearchPath = "../tmp/" + std::string(TCHAR_TO_UTF8(*GetDefault<UGeneralProjectSettings>()->ProjectName));
FVAPlugin::AddVAServerSearchPath(SearchPath);
}
else
{
......@@ -218,7 +221,7 @@ bool FVAServerLauncher::SendFileToVAServer(const FString& RelativeFilename)
return false;
}
//the search path is added once after connecting to a new server
//the search path is added in any case once after connecting to a new server
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment