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;