ezEngine  Milestone 7
DataDirType_inl.h
1 #pragma once
2 
3 #include <Foundation/Strings/StringBuilder.h>
4 
6 {
7  m_pDataDirectory = nullptr;
8  m_bIsReader = bIsReader;
9 }
10 
11 inline ezResult ezDataDirectoryReaderWriterBase::Open(const char* szResourcePath, ezDataDirectoryType* pDataDirectory)
12 {
13  m_pDataDirectory = pDataDirectory;
14  m_sFilePath = szResourcePath;
15 
16  if (InternalOpen() == EZ_SUCCESS)
17  return EZ_SUCCESS;
18 
19  return EZ_FAILURE;
20 }
21 
23 {
24  return m_sFilePath;
25 }
26 
28 {
29  return m_pDataDirectory;
30 }
31