Windows port WIP

--HG--
branch : feature-windows-support
This commit is contained in:
2017-01-08 21:20:53 -08:00
parent 2459414bbe
commit ef5b940eaf
388 changed files with 23 additions and 1 deletions

9
kraken/KRDataBlock.h Normal file → Executable file
View File

@@ -34,6 +34,10 @@
#include "KREngine-common.h"
#if defined(_WIN32) || defined(_WIN64)
#include <Windows.h>
#endif
#define KRENGINE_MIN_MMAP 32768
class KRDataBlock {
@@ -99,7 +103,12 @@ private:
size_t m_data_offset;
// For memory mapped objects:
#if defined(_WIN32) || defined(_WIN64)
HANDLE m_hPackFile;
#else
int m_fdPackFile;
#endif
std::string m_fileName;
KRDataBlock *m_fileOwnerDataBlock;
void *m_mmapData;