summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h17
1 files changed, 16 insertions, 1 deletions
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,10 +103,16 @@ 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.
*/
bool isDirectory(const std::string &path);
@@ -209,11 +215,20 @@ 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<std::string> loadTextFile(const std::string &fileName);
/**
+ * Retrieves the contents of a text file.
+ */
+ std::vector<std::string> 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.
*/