Skip prelading on standalone mode
[platform/core/dotnet/launcher.git] / NativeLauncher / launcher / dotnet / dotnet_launcher.cc
index 5bfa143..16a9865 100644 (file)
@@ -392,11 +392,13 @@ int CoreRuntime::preinitialize(bool standalone)
                } \
        } while (0)
 
-       std::ifstream preloadList(AOT_PRELOAD_PATH);
-       if (preloadList) {
-               std::string path;
-               while (getline(preloadList, path)) {
-                       PRELOAD_IMAGE(absolutePath(path).c_str());
+       if(!standalone) {
+               std::ifstream preloadList(AOT_PRELOAD_PATH);
+               if (preloadList) {
+                       std::string path;
+                       while (getline(preloadList, path)) {
+                               PRELOAD_IMAGE(absolutePath(path).c_str());
+                       }
                }
        }