Skip to content
Snippets Groups Projects
Commit cea867bf authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

VA::AddSearchPath: Added safety check in case being called before connected

parent 6fc4703d
Branches
No related tags found
1 merge request!9VAServerLauncher Improvement (now also sending reproduction type and ini)
...@@ -409,6 +409,9 @@ bool FVAPlugin::DisconnectServer() ...@@ -409,6 +409,9 @@ bool FVAPlugin::DisconnectServer()
void FVAPlugin::AddVAServerSearchPath(const std::string& SearchPath) void FVAPlugin::AddVAServerSearchPath(const std::string& SearchPath)
{ {
if (!ShouldInteractWithServer())
return;
// This checking whether it already exists, led to undeterministic runtime error, due to std::string dtor. // This checking whether it already exists, led to undeterministic runtime error, due to std::string dtor.
// So keep track whether it was added before yourself ;-) // So keep track whether it was added before yourself ;-)
/*CVAStruct Searchpaths = VAServer->GetSearchPaths(); /*CVAStruct Searchpaths = VAServer->GetSearchPaths();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment