mirror of https://github.com/axmolengine/axmol.git
Fix indent
This commit is contained in:
parent
f6083f3490
commit
20a6151f4c
|
@ -177,18 +177,18 @@ bool CocoLoader::ReadCocoBinBuff(char* pBinBuff)
|
||||||
pTempBuff += sizeof(stCocoFileHeader);
|
pTempBuff += sizeof(stCocoFileHeader);
|
||||||
char* pStartAddr = m_pMemoryBuff = pTempBuff;
|
char* pStartAddr = m_pMemoryBuff = pTempBuff;
|
||||||
|
|
||||||
char* pDestBuff = new char[m_pFileHeader->m_nDataSize];
|
char* pDestBuff = new char[m_pFileHeader->m_nDataSize];
|
||||||
if (m_pFileHeader->m_nCompressSize > 0)
|
if (m_pFileHeader->m_nCompressSize > 0)
|
||||||
{
|
{
|
||||||
uLongf dwSrcSize = m_pFileHeader->m_nCompressSize;
|
uLongf dwSrcSize = m_pFileHeader->m_nCompressSize;
|
||||||
uLongf dwDestSize = m_pFileHeader->m_nDataSize;
|
uLongf dwDestSize = m_pFileHeader->m_nDataSize;
|
||||||
uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize);
|
uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize);
|
memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize);
|
||||||
}
|
}
|
||||||
pStartAddr = m_pMemoryBuff = pDestBuff;
|
pStartAddr = m_pMemoryBuff = pDestBuff;
|
||||||
|
|
||||||
m_pObjectDescArray = (stExpCocoObjectDesc*)pStartAddr;
|
m_pObjectDescArray = (stExpCocoObjectDesc*)pStartAddr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue