From bf9bccc30a186e338f96c230a4f63cc924c77bd8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Jun 2011 23:23:30 +0300 Subject: Add ability to add comments to any players. --- src/resources/resourcemanager.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/resources/resourcemanager.h') diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index 71cbdce62..0b73a796e 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -103,9 +103,15 @@ class ResourceManager /** * Checks whether the given file or directory exists in the search path + * (PhysFS) */ bool exists(const std::string &path); + /** + * Checks whether the given file or directory exists + */ + bool existsLocal(const std::string &path); + /** * Checks whether the given path is a directory. */ @@ -209,10 +215,19 @@ class ResourceManager void *loadFile(const std::string &fileName, int &fileSize); /** - * Retrieves the contents of a text file. + * Retrieves the contents of a text file (PhysFS). */ std::vector loadTextFile(const std::string &fileName); + /** + * Retrieves the contents of a text file. + */ + std::vector loadTextFileLocal(const std::string + &fileName); + + void saveTextFile(std::string path, std::string name, + std::string text); + /** * Loads the given filename as an SDL surface. The returned surface is * expected to be freed by the caller using SDL_FreeSurface. -- cgit v1.2.3-60-g2f50