fix(Core/Session): Fixed loading global account data and tutorials. S… (#14038)

fix(Core/Session): Fixed loading global account data and tutorials. Source: TrinityCore.

Fixes #11974
This commit is contained in:
UltraNix
2022-12-06 13:08:46 +01:00
committed by GitHub
parent 590ad4e3e7
commit b9ea8b16af
4 changed files with 84 additions and 36 deletions

View File

@@ -447,10 +447,9 @@ public:
AccountData* GetAccountData(AccountDataType type) { return &m_accountData[type]; }
void SetAccountData(AccountDataType type, time_t tm, std::string const& data);
void SendAccountDataTimes(uint32 mask);
void LoadGlobalAccountData();
void LoadAccountData(PreparedQueryResult result, uint32 mask);
void LoadTutorialsData();
void LoadTutorialsData(PreparedQueryResult result);
void SendTutorialsData();
void SaveTutorialsData(CharacterDatabaseTransaction trans);
uint32 GetTutorialInt(uint8 index) const { return m_Tutorials[index]; }
@@ -1077,6 +1076,9 @@ public: // opcodes handlers
TransactionCallback& AddTransactionCallback(TransactionCallback&& callback);
SQLQueryHolderCallback& AddQueryHolderCallback(SQLQueryHolderCallback&& callback);
void InitializeSession();
void InitializeSessionCallback(CharacterDatabaseQueryHolder const& realmHolder, uint32 clientCacheVersion);
private:
void ProcessQueryCallbacks();