return 1;
}
- std::vector<std::string> searchDirectories = {
- RuntimeDirectory, DeviceAPIDirectory
-#ifdef USE_MANAGED_LAUNCHER
- , Basename(LauncherAssembly)
-#endif
- };
-
- //std::string trusted_directories = JoinStrings(searchDirectories, ":");
std::string tpa;
- AssembliesInDirectory(searchDirectories, tpa);
-
std::string appRoot = root;
std::string appBin = ConcatPath(appRoot, "bin");
std::string appLib = ConcatPath(appRoot, "lib");
std::string probePath = appBin + ":" + appLib + ":" + NativeLibDirectory;
+ std::vector<std::string> searchDirectories;
+ searchDirectories.push_back(appBin);
+ searchDirectories.push_back(appLib);
+ searchDirectories.push_back(RuntimeDirectory);
+ searchDirectories.push_back(DeviceAPIDirectory);
+#ifdef USE_MANAGED_LAUNCHER
+ searchDirectories.push_back(LauncherAssembly);
+#endif
+
+ AssembliesInDirectory(searchDirectories, tpa);
+
#ifdef USE_MANAGED_LAUNCHER
RunManagedLauncher(app_id, probePath.c_str(), tpa.c_str());