93 std::string dirname = std::string(
szWorkDirWmo) +
"/dir_bin";
95 dirfile = fopen(dirname.c_str(),
"ab");
98 printf(
"Can't open dirfile!'%s'\n", dirname.c_str());
112 if (!strcmp(fourcc,
"MCIN"))
115 else if (!strcmp(fourcc,
"MTEX"))
118 else if (!strcmp(fourcc,
"MMDX"))
122 char* buf =
new char[size];
125 while (p < buf + size)
142 else if (!strcmp(fourcc,
"MWMO"))
146 char* buf =
new char[size];
149 while (p < buf + size)
163 else if (!strcmp(fourcc,
"MDDF"))
167 nMDX = (int)size / 36;
168 for (
int i=0; i<
nMDX; ++i)
178 else if (!strcmp(fourcc,
"MODF"))
182 nWMO = (int)size / 64;
183 for (
int i=0; i<
nWMO; ++i)
void flipcc(char *fcc)
Definition: mpqfile.h:57
int nMDX
Definition: adtfile.h:121
size_t getPos()
Definition: mpqfile.h:48
std::vector< std::string > WmoInstanceNames
Definition: adtfile.h:122
void close()
Definition: mpqfile.cpp:81
MPQFile ADT
Definition: adtfile.h:114
bool isEof()
Definition: mpqfile.h:51
void FixNameCase(char *name, size_t len)
Definition: adtfile.cpp:47
std::vector< std::string > ModelInstanceNames
Definition: adtfile.h:123
void FixNameSpaces(char *name, size_t len)
Definition: adtfile.cpp:64
uint32_t uint32
Definition: Define.h:150
size_t read(void *dest, size_t bytes)
Definition: mpqfile.cpp:52
char const * GetPlainName(char const *FileName)
Definition: adtfile.cpp:29
int nWMO
Definition: adtfile.h:120
const char * szWorkDirWmo
Definition: vmapexport.cpp:81
void seek(int offset)
Definition: mpqfile.cpp:69
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
Definition: format.h:3083