diff options
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 193647a6e..143cf467e 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -1001,25 +1001,24 @@ bool ResourceManager::loadTextFile(const std::string &fileName, return true; } -StringVect ResourceManager::loadTextFileLocal( - const std::string &fileName) +bool ResourceManager::loadTextFileLocal(const std::string &fileName, + StringVect &lines) { std::ifstream file; char line[501]; - StringVect lines; file.open(fileName.c_str(), std::ios::in); if (!file.is_open()) { logger->log("Couldn't load text file: %s", fileName.c_str()); - return lines; + return false; } while (file.getline(line, 500)) lines.push_back(line); - return lines; + return true; } void ResourceManager::saveTextFile(std::string path, const std::string &name, |