X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FScene.cc;h=a1218f29b6f14eed579aa5bc0681f1fb35785705;hp=c756ec89c296decd840baaa14eeb67ce2f8ff50c;hb=ed04ddaaa59dcc42e375ec492dbda77f693530e9;hpb=6945b41482b9549f21dcab251c3305b3f6756994 diff --git a/src/Scene.cc b/src/Scene.cc index c756ec8..a1218f2 100644 --- a/src/Scene.cc +++ b/src/Scene.cc @@ -177,8 +177,8 @@ struct Scene::impl : public moof::manager 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;