diff --git a/Source/VAPlugin/Private/VAServerLauncher.cpp b/Source/VAPlugin/Private/VAServerLauncher.cpp index edba89131937b16baf138c8702ebb80f97b2b1cd..a418dc26b840613352ba9e707ead52a409df3273 100644 --- a/Source/VAPlugin/Private/VAServerLauncher.cpp +++ b/Source/VAPlugin/Private/VAServerLauncher.cpp @@ -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; }