mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Less logging when loading maps on expected path
This commit is contained in:
parent
243acf5c55
commit
55ff665894
|
@ -4,6 +4,7 @@
|
|||
#include "datafile.h"
|
||||
|
||||
#include <base/hash_ctxt.h>
|
||||
#include <base/log.h>
|
||||
#include <base/system.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
|
@ -100,7 +101,7 @@ struct CDatafile
|
|||
|
||||
bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename, int StorageType)
|
||||
{
|
||||
dbg_msg("datafile", "loading. filename='%s'", pFilename);
|
||||
log_trace("datafile", "loading. filename='%s'", pFilename);
|
||||
|
||||
IOHANDLE File = pStorage->OpenFile(pFilename, IOFLAG_READ, StorageType);
|
||||
if(!File)
|
||||
|
@ -221,7 +222,7 @@ bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename, int
|
|||
m_pDataFile->m_Info.m_pItemStart = (char *)&m_pDataFile->m_Info.m_pDataOffsets[m_pDataFile->m_Header.m_NumRawData];
|
||||
m_pDataFile->m_Info.m_pDataStart = m_pDataFile->m_Info.m_pItemStart + m_pDataFile->m_Header.m_ItemSize;
|
||||
|
||||
dbg_msg("datafile", "loading done. datafile='%s'", pFilename);
|
||||
log_trace("datafile", "loading done. datafile='%s'", pFilename);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -288,7 +289,7 @@ void *CDataFileReader::GetDataImpl(int Index, int Swap)
|
|||
unsigned long UncompressedSize = m_pDataFile->m_Info.m_pDataSizes[Index];
|
||||
unsigned long s;
|
||||
|
||||
dbg_msg("datafile", "loading data index=%d size=%d uncompressed=%lu", Index, DataSize, UncompressedSize);
|
||||
log_trace("datafile", "loading data index=%d size=%d uncompressed=%lu", Index, DataSize, UncompressedSize);
|
||||
m_pDataFile->m_ppDataPtrs[Index] = (char *)malloc(UncompressedSize);
|
||||
|
||||
// read the compressed data
|
||||
|
@ -308,7 +309,7 @@ void *CDataFileReader::GetDataImpl(int Index, int Swap)
|
|||
else
|
||||
{
|
||||
// load the data
|
||||
dbg_msg("datafile", "loading data index=%d size=%d", Index, DataSize);
|
||||
log_trace("datafile", "loading data index=%d size=%d", Index, DataSize);
|
||||
m_pDataFile->m_ppDataPtrs[Index] = (char *)malloc(DataSize);
|
||||
io_seek(m_pDataFile->m_File, m_pDataFile->m_DataStartOffset + m_pDataFile->m_Info.m_pDataOffsets[Index], IOSEEK_START);
|
||||
io_read(m_pDataFile->m_File, m_pDataFile->m_ppDataPtrs[Index], DataSize);
|
||||
|
|
Loading…
Reference in a new issue