summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-27 23:22:45 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-27 23:22:45 +0000
commit227aeae87bcca1ecb0183530a4cca1b038863635 (patch)
tree1f2dd29f93e904ccef0fdd9fe2c7d9778b867934 /src/main.cpp
parentd15d76976b6e57a9f421ab034c6f841051b962f3 (diff)
downloadmana-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.cpp8
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;