diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-27 23:22:45 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-27 23:22:45 +0000 |
commit | 227aeae87bcca1ecb0183530a4cca1b038863635 (patch) | |
tree | 1f2dd29f93e904ccef0fdd9fe2c7d9778b867934 /src/main.cpp | |
parent | d15d76976b6e57a9f421ab034c6f841051b962f3 (diff) | |
download | Mana-227aeae87bcca1ecb0183530a4cca1b038863635.tar.gz Mana-227aeae87bcca1ecb0183530a4cca1b038863635.tar.bz2 Mana-227aeae87bcca1ecb0183530a4cca1b038863635.tar.xz Mana-227aeae87bcca1ecb0183530a4cca1b038863635.zip |
Added support for updates to the resource manager.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index b1ef5661..b2421a07 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -161,9 +161,9 @@ void init_engine() exit(1); } - // Creating and checking the ~/.tmw/data folder existence and rights. - std::string dataUpdateDir = homeDir + "/data"; - //sprintf(dataUpdateDir, "%s/data", homeDir); + // Creating and checking the ~/.tmw/updates folder existence and rights. + std::string dataUpdateDir = homeDir + "/updates"; + //sprintf(dataUpdateDir, "%s/updates", homeDir); if ((mkdir(dataUpdateDir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) && (errno != EEXIST)) { @@ -444,6 +444,8 @@ int main(int argc, char *argv[]) uw = new UpdaterWindow(); uw->updateData(); delete uw; + ResourceManager::getInstance()-> + searchAndAddArchives("/updates", ".zip", 0); break; default: state = EXIT; |