From: Ingo Ruhnke Date: Tue, 26 Aug 2014 20:29:08 +0000 (+0200) Subject: Save and parse repository index when AddonManager loads X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d6220ed0019631cbc1f007a917742e60812d14e6;p=supertux.git Save and parse repository index when AddonManager loads Meaning the user doesn't have to redownload it each time he starts the game. --- diff --git a/src/addon/addon_manager.cpp b/src/addon/addon_manager.cpp index 934dc1d76..e6c1b0a4f 100644 --- a/src/addon/addon_manager.cpp +++ b/src/addon/addon_manager.cpp @@ -110,6 +110,15 @@ AddonManager::AddonManager(const std::string& addon_directory, } } } + + try + { + m_repository_addons = parse_addon_infos("/addons/repository.nfo"); + } + catch(const std::exception& err) + { + log_warning << "parsing repository.nfo failed: " << err.what() << std::endl; + } } AddonManager::~AddonManager()