From 227aeae87bcca1ecb0183530a4cca1b038863635 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Wed, 27 Jul 2005 23:22:45 +0000 Subject: Added support for updates to the resource manager. --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') 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; -- cgit v1.2.3-70-g09d2