mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 13:16:23 +00:00
Directory Structure [step 1]: moving files
working on #672 NOTE: This commit can't be compiled!!
This commit is contained in:
43
src/tools/mesh_extractor/MPQManager.h
Normal file
43
src/tools/mesh_extractor/MPQManager.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (C)
|
||||
*
|
||||
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
||||
*/
|
||||
|
||||
#ifndef MPQ_MANAGER_H
|
||||
#define MPQ_MANAGER_H
|
||||
|
||||
#include "MPQ.h"
|
||||
#include <ace/Synch.h>
|
||||
#include <set>
|
||||
#include <map>
|
||||
|
||||
class DBC;
|
||||
class MPQManager
|
||||
{
|
||||
public:
|
||||
MPQManager() {}
|
||||
~MPQManager() {}
|
||||
|
||||
void Initialize();
|
||||
FILE* GetFile(const std::string& path);
|
||||
FILE* GetFileFrom(const std::string& path, MPQArchive* file);
|
||||
DBC* GetDBC(const std::string& name);
|
||||
std::vector<std::string> GetAllFiles(std::string extension);
|
||||
|
||||
std::deque<MPQArchive*> Archives;
|
||||
int32 BaseLocale;
|
||||
std::set<uint32> AvailableLocales;
|
||||
std::map<uint32, MPQArchive*> LocaleFiles;
|
||||
|
||||
static char const* Files[];
|
||||
static char const* Languages[];
|
||||
protected:
|
||||
void InitializeDBC();
|
||||
private:
|
||||
ACE_Thread_Mutex mutex;
|
||||
};
|
||||
|
||||
extern MPQManager* MPQHandler;
|
||||
#endif
|
||||
Reference in New Issue
Block a user