diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-12-12 15:52:42 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-12-12 15:52:42 +0000 |
commit | 16cb089845b3adcdd605d138d903bd7ada0f9e03 (patch) | |
tree | d43dea9b474d9cceee0de653e23f9aa2c556009e /src/main.cpp | |
parent | 15d969bb200b3e820982ccc8cb157231d7befa7e (diff) | |
download | mana-16cb089845b3adcdd605d138d903bd7ada0f9e03.tar.gz mana-16cb089845b3adcdd605d138d903bd7ada0f9e03.tar.bz2 mana-16cb089845b3adcdd605d138d903bd7ada0f9e03.tar.xz mana-16cb089845b3adcdd605d138d903bd7ada0f9e03.zip |
Added Adler32 checksum for updates
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index eebb92bb..f54b0792 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -380,19 +380,22 @@ void parseOptions(int argc, char *argv[], Options &options) } /** - * Reads the file "updates/resources.txt" and attempts to load each update + * Reads the file "updates/resources2.txt" and attempts to load each update * mentioned in it. */ void loadUpdates() { - const std::string updatesFile = "updates/resources.txt"; + const std::string updatesFile = "updates/resources2.txt"; ResourceManager *resman = ResourceManager::getInstance(); std::vector<std::string> lines = resman->loadTextFile(updatesFile); std::string homeDir = config.getValue("homeDir", ""); for (unsigned int i = 0; i < lines.size(); ++i) { - resman->addToSearchPath(homeDir + "/updates/" + lines[i], false); + std::stringstream line(lines[i]); + std::string filename; + line >> filename; + resman->addToSearchPath(homeDir + "/updates/" + filename, false); } } |