]> Dogcows Code - chaz/yoink/blobdiff - src/Scene.cc
fixed some resource management bugs
[chaz/yoink] / src / Scene.cc
index c756ec89c296decd840baaa14eeb67ce2f8ff50c..a1218f29b6f14eed579aa5bc0681f1fb35785705 100644 (file)
@@ -177,8 +177,8 @@ struct Scene::impl : public moof::manager<impl>
 
        moof::script::status load(moof::settings& settings, moof::script& script)
        {
-               std::string path(name());
-               if (!resource::find(path))
+               std::string path = moof::resource::find_file("scenes/"+name(), "lua");
+               if (path.empty())
                {
                        script.push("the scene file could not be found");
                        return moof::script::file_error;
This page took 0.018556 seconds and 4 git commands to generate.