From 0a19f0433992be5f9791c8869380d09cd06b66b8 Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 22 Mar 2013 18:46:40 +0100 Subject: - support for grouping filters for mod list (incomplete) - offering multiple options for mod names during installation - support for renaming profiles - updated installer plugins - minor bugfixes --- src/modinfo.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/modinfo.h') diff --git a/src/modinfo.h b/src/modinfo.h index a944a6f6..fba6fc36 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -125,12 +125,11 @@ public: * @brief retrieve a ModInfo object based on its nexus mod id * * @param modID the nexus mod id to look up - * @param missingAcceptable if true, this function will return a null-pointer if no mod has the specified mod id, otherwise an exception is thrown * @return a reference counting pointer to the mod info * @todo in its current form, this function is broken! There may be multiple mods with the same nexus id, * this function will return only one of them **/ - static ModInfo::Ptr getByModID(int modID, bool missingAcceptable); + static std::vector getByModID(int modID); /** * @brief remove a mod by index @@ -390,14 +389,14 @@ public: bool categorySet(int categoryID) const; /** - * @brief retrive the whole list of categories this mod belongs to + * @brief retrive the whole list of categories (as ids) this mod belongs to * * @return list of categories **/ const std::set &getCategories() const { return m_Categories; } /** - * @return the primary category of this mod + * @return id of the primary category of this mod */ int getPrimaryCategory() const { return m_PrimaryCategory; } @@ -459,7 +458,7 @@ protected: private: static QMutex s_Mutex; - static std::map s_ModsByModID; + static std::map > s_ModsByModID; static int s_NextID; bool m_Valid; -- cgit v1.3.1