X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FAnimation.cc;h=503f77a47c2eecf21a24a2986d082061358af829;hb=382626aad0a683ed8642a6a807eea743db45f7f8;hp=ba34bc5d9f95cae0bc86fa0aba1242cf73cf4626;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc;p=chaz%2Fyoink 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"); -} -