X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FAnimation.cc;h=503f77a47c2eecf21a24a2986d082061358af829;hp=ba34bc5d9f95cae0bc86fa0aba1242cf73cf4626;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=85783316365181491a3e3c0c63659972477cebba diff --git a/src/Animation.cc b/src/Animation.cc index ba34bc5..503f77a 100644 --- a/src/Animation.cc +++ b/src/Animation.cc @@ -139,7 +139,7 @@ public: moof::script script; std::string path(name); - if (!Animation::find_path(path)) + if (!resource::find(path)) { throw std::runtime_error("cannot find resource " + name); } @@ -306,14 +306,3 @@ unsigned Animation::getFrame() const return impl_->mFrameIndex; } - -/** - * Specialized search location for animation files. They can be found in - * the "animations" subdirectory of any of the search directories. - */ - -bool Animation::find_path(std::string& name) -{ - return moof::resource::find_path(name, "animations/", "lua"); -} -