![]() |
TrinityCore
|
#include "Banner.h"#include "CascHandles.h"#include "Common.h"#include "DB2CascFileSource.h"#include "DB2Meta.h"#include "DBFilesClientList.h"#include "ExtractorDB2LoadInfo.h"#include "IteratorPair.h"#include "Locales.h"#include "MapDefines.h"#include "MapUtils.h"#include "Memory.h"#include "StringFormat.h"#include "Util.h"#include "adt.h"#include "wdt.h"#include "advstd.h"#include <CascLib.h>#include <boost/filesystem/directory.hpp>#include <boost/filesystem/operations.hpp>#include <boost/filesystem/path.hpp>#include <bitset>#include <set>#include <unordered_map>#include <cstdio>#include <cstdlib>#include <cstring>#include <io.h>#include "WheatyExceptionReport.h"
Include dependency graph for System.cpp:Go to the source code of this file.
Classes | |
| struct | MapEntry |
| struct | LiquidMaterialEntry |
| struct | LiquidObjectEntry |
| struct | LiquidTypeEntry |
Macros | |
| #define | CASC_LOCALES_COUNT 17 |
Typedefs | |
| template<typename T , std::size_t N> | |
| using | Array2D = T[N][N] |
Enumerations | |
| enum | Extract : uint8 { EXTRACT_MAP = 0x1 , EXTRACT_DBC = 0x2 , EXTRACT_CAMERA = 0x4 , EXTRACT_GT = 0x8 , EXTRACT_ALL = EXTRACT_MAP | EXTRACT_DBC | EXTRACT_CAMERA | EXTRACT_GT } |
Functions | |
| void | CreateDir (boost::filesystem::path const &path) |
| void | Usage (char const *prg) |
| void | HandleArgs (int argc, char *arg[]) |
| void | TryLoadDB2 (char const *name, DB2CascFileSource *source, DB2FileLoader *db2, DB2FileLoadInfo const *loadInfo) |
| void | ReadMapDBC () |
| void | ReadLiquidMaterialTable () |
| void | ReadLiquidObjectTable () |
| void | ReadLiquidTypeTable () |
| bool | ReadCinematicCameraDBC () |
| float | selectUInt8StepStore (float maxDiff) |
| float | selectUInt16StepStore (float maxDiff) |
| bool | TransformToHighRes (uint16 lowResHoles, uint8(&hiResHoles)[8]) |
| template<typename T , std::size_t N> | |
| static void | WriteArray2D (Array2D< T, N > const &data, FILE *f) |
| bool | ConvertADT (ChunkedFile &adt, std::string const &mapName, std::string const &outputPath, int gx, int gy, uint32 build, bool ignoreDeepWater) |
| bool | ConvertADT (std::string const &fileName, std::string const &mapName, std::string const &outputPath, int gx, int gy, uint32 build, bool ignoreDeepWater) |
| bool | ConvertADT (uint32 fileDataId, std::string const &mapName, std::string const &outputPath, int gx, int gy, uint32 build, bool ignoreDeepWater) |
| bool | IsDeepWaterIgnored (uint32 mapId, uint32 x, uint32 y) |
| void | ExtractMaps (uint32 build) |
| bool | ExtractFile (CASC::File *fileInArchive, std::string const &filename) |
| bool | ExtractDB2File (uint32 fileDataId, char const *cascFileName, int locale, boost::filesystem::path const &outputPath) |
| char const * | GetCascFilenamePart (char const *cascPath) |
| void | ExtractDBFilesClient (int l) |
| void | ExtractCameraFiles () |
| void | ExtractGameTables () |
| bool | OpenCascStorage (int locale) |
| uint32 | GetInstalledLocalesMask () |
| static bool | RetardCheck () |
| int | main (int argc, char *arg[]) |
| INIT_CRASH_HANDLER () | |
Variables | |
| std::shared_ptr< CASC::Storage > | CascStorage |
| std::vector< MapEntry > | map_ids |
| std::unordered_map< uint32, LiquidMaterialEntry > | LiquidMaterials |
| std::unordered_map< uint32, LiquidObjectEntry > | LiquidObjects |
| std::unordered_map< uint32, LiquidTypeEntry > | LiquidTypes |
| std::set< uint32 > | CameraFileDataIds |
| bool | PrintProgress = true |
| boost::filesystem::path | input_path |
| boost::filesystem::path | output_path |
| int | CONF_extract = EXTRACT_ALL |
| bool | CONF_allow_height_limit = true |
| float | CONF_use_minHeight = -2000.0f |
| bool | CONF_allow_float_to_int = true |
| float | CONF_float_to_int8_limit = 2.0f |
| float | CONF_float_to_int16_limit = 2048.0f |
| float | CONF_flat_height_delta_limit = 0.005f |
| float | CONF_flat_liquid_delta_limit = 0.001f |
| uint32 | CONF_Locale = 0 |
| char const * | CONF_Product = "wow" |
| char const * | CONF_Region = "eu" |
| bool | CONF_UseRemoteCasc = false |
| char const * | CascLocaleNames [CASC_LOCALES_COUNT] |
| uint32 | WowLocaleToCascLocaleFlags [12] |
| #define CASC_LOCALES_COUNT 17 |
Definition at line 120 of file System.cpp.
| using Array2D = T[N][N] |
Definition at line 465 of file System.cpp.
| Enumerator | |
|---|---|
| EXTRACT_MAP | |
| EXTRACT_DBC | |
| EXTRACT_CAMERA | |
| EXTRACT_GT | |
| EXTRACT_ALL | |
Definition at line 90 of file System.cpp.
| bool ConvertADT | ( | ChunkedFile & | adt, |
| std::string const & | mapName, | ||
| std::string const & | outputPath, | ||
| int | gx, | ||
| int | gy, | ||
| uint32 | build, | ||
| bool | ignoreDeepWater | ||
| ) |
Definition at line 473 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ConvertADT | ( | std::string const & | fileName, |
| std::string const & | mapName, | ||
| std::string const & | outputPath, | ||
| int | gx, | ||
| int | gy, | ||
| uint32 | build, | ||
| bool | ignoreDeepWater | ||
| ) |
| void CreateDir | ( | boost::filesystem::path const & | path | ) |
| void ExtractCameraFiles | ( | ) |
Definition at line 1303 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ExtractDB2File | ( | uint32 | fileDataId, |
| char const * | cascFileName, | ||
| int | locale, | ||
| boost::filesystem::path const & | outputPath | ||
| ) |
Definition at line 1190 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ExtractDBFilesClient | ( | int | l | ) |
Definition at line 1278 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ExtractFile | ( | CASC::File * | fileInArchive, |
| std::string const & | filename | ||
| ) |
Definition at line 1147 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ExtractGameTables | ( | ) |
Definition at line 1336 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ExtractMaps | ( | uint32 | build | ) |
Definition at line 1083 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| char const * GetCascFilenamePart | ( | char const * | cascPath | ) |
Definition at line 1270 of file System.cpp.
| uint32 GetInstalledLocalesMask | ( | ) |
Definition at line 1420 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleArgs | ( | int | argc, |
| char * | arg[] | ||
| ) |
Definition at line 179 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| INIT_CRASH_HANDLER | ( | ) |
| int main | ( | int | argc, |
| char * | arg[] | ||
| ) |
Definition at line 1481 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool OpenCascStorage | ( | int | locale | ) |
Definition at line 1389 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ReadCinematicCameraDBC | ( | ) |
Definition at line 394 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ReadLiquidMaterialTable | ( | ) |
Definition at line 320 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ReadLiquidObjectTable | ( | ) |
Definition at line 345 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ReadLiquidTypeTable | ( | ) |
Definition at line 369 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ReadMapDBC | ( | ) |
Definition at line 275 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| float selectUInt16StepStore | ( | float | maxDiff | ) |
| float selectUInt8StepStore | ( | float | maxDiff | ) |
| void TryLoadDB2 | ( | char const * | name, |
| DB2CascFileSource * | source, | ||
| DB2FileLoader * | db2, | ||
| DB2FileLoadInfo const * | loadInfo | ||
| ) |
Definition at line 262 of file System.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Usage | ( | char const * | prg | ) |
|
inlinestatic |
| std::set<uint32> CameraFileDataIds |
Definition at line 82 of file System.cpp.
| char const* CascLocaleNames[CASC_LOCALES_COUNT] |
Definition at line 122 of file System.cpp.
| std::shared_ptr<CASC::Storage> CascStorage |
Definition at line 51 of file System.cpp.
| bool CONF_allow_float_to_int = true |
Definition at line 108 of file System.cpp.
| bool CONF_allow_height_limit = true |
Definition at line 104 of file System.cpp.
| int CONF_extract = EXTRACT_ALL |
Definition at line 101 of file System.cpp.
| float CONF_flat_height_delta_limit = 0.005f |
Definition at line 111 of file System.cpp.
| float CONF_flat_liquid_delta_limit = 0.001f |
Definition at line 112 of file System.cpp.
| float CONF_float_to_int16_limit = 2048.0f |
Definition at line 110 of file System.cpp.
| float CONF_float_to_int8_limit = 2.0f |
Definition at line 109 of file System.cpp.
| uint32 CONF_Locale = 0 |
Definition at line 114 of file System.cpp.
| char const* CONF_Product = "wow" |
Definition at line 116 of file System.cpp.
| char const* CONF_Region = "eu" |
Definition at line 117 of file System.cpp.
| float CONF_use_minHeight = -2000.0f |
Definition at line 105 of file System.cpp.
| bool CONF_UseRemoteCasc = false |
Definition at line 118 of file System.cpp.
| boost::filesystem::path input_path |
Definition at line 84 of file System.cpp.
| std::unordered_map<uint32, LiquidMaterialEntry> LiquidMaterials |
Definition at line 79 of file System.cpp.
| std::unordered_map<uint32, LiquidObjectEntry> LiquidObjects |
Definition at line 80 of file System.cpp.
| std::unordered_map<uint32, LiquidTypeEntry> LiquidTypes |
Definition at line 81 of file System.cpp.
| std::vector<MapEntry> map_ids |
Definition at line 78 of file System.cpp.
| boost::filesystem::path output_path |
Definition at line 85 of file System.cpp.
| bool PrintProgress = true |
Definition at line 83 of file System.cpp.
| uint32 WowLocaleToCascLocaleFlags[12] |
Definition at line 135 of file System.cpp.