Asynchronous streaming and memory management improvements in progress.

--HG--
branch : async_streaming
This commit is contained in:
2013-11-02 01:08:51 -07:00
parent ab808fc3e1
commit 06436d72f5
11 changed files with 218 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
#include "KRDataBlock.h"
#include "KREngine-common.h"
#include "KRResource.h"
KRDataBlock::KRDataBlock() {
m_data = NULL;
@@ -97,7 +98,7 @@ bool KRDataBlock::load(const std::string &path)
m_fdPackFile = open(path.c_str(), O_RDONLY);
if(m_fdPackFile >= 0) {
m_fileOwnerDataBlock = this;
m_fileName = path;
m_fileName = KRResource::GetFileBase(path);
if(fstat(m_fdPackFile, &statbuf) >= 0) {
m_data_size = statbuf.st_size;
m_data_offset = 0;