Addons/AddonMgr: converted from singleton to namespace with free functions

This commit is contained in:
Spp-
2011-09-09 15:22:52 +02:00
parent 45af1238cf
commit 14b3ed9164
6 changed files with 38 additions and 53 deletions
+2 -2
View File
@@ -868,7 +868,7 @@ void WorldSession::ReadAddonsInfo(WorldPacket &data)
AddonInfo addon(addonName, enabled, crc, 2, true);
SavedAddon const* savedAddon = sAddonMgr->GetAddonInfo(addonName);
SavedAddon const* savedAddon = AddonMgr::GetAddonInfo(addonName);
if (savedAddon)
{
bool match = true;
@@ -883,7 +883,7 @@ void WorldSession::ReadAddonsInfo(WorldPacket &data)
}
else
{
sAddonMgr->SaveAddon(addon);
AddonMgr::SaveAddon(addon);
sLog->outDetail("ADDON: %s (0x%x) was not known, saving...", addon.Name.c_str(), addon.CRC);
}
+2
View File
@@ -939,6 +939,8 @@ class WorldSession
uint32 _accountId;
uint8 m_expansion;
typedef std::list<AddonInfo> AddonsList;
time_t _logoutTime;
bool m_inQueue; // session wait in auth.queue
bool m_playerLoading; // code processed in LoginPlayer