From d6220ed0019631cbc1f007a917742e60812d14e6 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Tue, 26 Aug 2014 22:29:08 +0200 Subject: [PATCH] Save and parse repository index when AddonManager loads Meaning the user doesn't have to redownload it each time he starts the game. --- src/addon/addon_manager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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() -- 2.11.0