parent
02c4b7f1bc
commit
d42f9a3226
|
@ -72,18 +72,16 @@ using namespace std;
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Default constructor
|
// Default constructor
|
||||||
MMDImporter::MMDImporter()
|
MMDImporter::MMDImporter()
|
||||||
: m_Buffer(),
|
: m_Buffer()
|
||||||
// m_pRootObject( NULL ),
|
, m_strAbsPath("") {
|
||||||
m_strAbsPath("") {
|
DefaultIOSystem io;
|
||||||
DefaultIOSystem io;
|
m_strAbsPath = io.getOsSeparator();
|
||||||
m_strAbsPath = io.getOsSeparator();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Destructor.
|
// Destructor.
|
||||||
MMDImporter::~MMDImporter() {
|
MMDImporter::~MMDImporter() {
|
||||||
// delete m_pRootObject;
|
// empty
|
||||||
// m_pRootObject = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
@ -96,8 +94,7 @@ bool MMDImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler,
|
||||||
} else // Check file Header
|
} else // Check file Header
|
||||||
{
|
{
|
||||||
static const char *pTokens[] = {"PMX "};
|
static const char *pTokens[] = {"PMX "};
|
||||||
return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, pTokens,
|
return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, pTokens, 1);
|
||||||
1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue