Tools/MeshExtractor:

* Fixed some crashes
* Added multithreading support, default to 4 threads.
* Added some command line arguments
This commit is contained in:
Subv committed 2012-09-29 12:49:14 -05:00
1 parent 3bea28e62c
commit 1a7f0658b2
9 files changed
+82 -51

No files matched your search

+3 -6
View File
@@ -3,6 +3,8 @@
#include "DBC.h"
#include "Utils.h"
#include "ace/Synch.h"
char* MPQManager::Files[] = {
"common.MPQ",
"common-2.MPQ",
@@ -27,12 +29,6 @@ void MPQManager::Initialize()
}
}
void MPQManager::LoadMaps()
{
DBC* file = GetDBC("Map");
printf("NAME %s\n", file->GetRecordById(608)->GetString(1).c_str());
}
void MPQManager::InitializeDBC()
{
CurLocale = 0;
@@ -54,6 +50,7 @@ void MPQManager::InitializeDBC()
FILE* MPQManager::GetFile( std::string path )
{
ACE_GUARD_RETURN(ACE_Thread_Mutex, g, mutex, NULL);
MPQFile file(path.c_str());
if (file.isEof())
return NULL;