Przeglądaj źródła

~ Make use of the resolved path after startup and ensure it ends with a trailing slash.
Should fix @C0nvert 's issues on #59

Signed-off-by: Alexis Maiquez <almamu@almamu.com>

Alexis Maiquez 4 lat temu
rodzic
commit
d5745b1cfa
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      main.cpp

+ 4 - 2
main.cpp

@@ -162,14 +162,16 @@ int main (int argc, char* argv[])
 
     auto containers = new WallpaperEngine::Assets::CCombinedContainer ();
 
-    // make sure the project.json exists and is present
+    // update the used path with the full one
+    path = finalPath;
+    path += "/";
 
     // the background's path is required to load project.json regardless of the type of background we're using
     containers->add (new WallpaperEngine::Assets::CDirectory (path));
     // check if scene.pkg exists and add it to the list
     try
     {
-        std::string scene_path = path + "/scene.pkg";
+        std::string scene_path = path + "scene.pkg";
 
         // add the package to the list
         containers->add (new WallpaperEngine::Assets::CPackage (scene_path));