aboutsummaryrefslogtreecommitdiff
path: root/src/lua
Commit message (Expand)AuthorAge
* Add support for Android 2.3+sapier2014-06-29
* Improve build configuration optionsPerttu Ahola2012-07-23
* cmake: lua: use COMMON_CFLAGSJonathan Neuschäfer2012-03-31
* Do not install the static lua library filePerttu Ahola2011-11-29
* Make it actually buildPerttu Ahola2011-11-29
* Add LuaPerttu Ahola2011-11-29
* Removed lua stuffPerttu Ahola2011-04-03
* modified the build system of lua to a more minimal onePerttu Ahola2011-02-24
* preliminary lua scripting framework for objectsPerttu Ahola2011-02-21
Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once #include <iostream> #include <string> class FileCache { public: /* 'dir' is the file cache directory to use. */ FileCache(const std::string &dir) : m_dir(dir) {} bool update(const std::string &name, const std::string &data); bool load(const std::string &name, std::ostream &os); bool exists(const std::string &name); private: std::string m_dir; bool loadByPath(const std::string &path, std::ostream &os); bool updateByPath(const std::string &path, const std::string &data); };