From 3a98f7a048c044ce0d870320fc0b1def0db4f7fb Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 6 Oct 2010 23:07:35 +0200 Subject: added mod system. Closes #34 --- src/engine/shared/datafile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine/shared/datafile.cpp') diff --git a/src/engine/shared/datafile.cpp b/src/engine/shared/datafile.cpp index 4ef278cd..81d0e2cf 100644 --- a/src/engine/shared/datafile.cpp +++ b/src/engine/shared/datafile.cpp @@ -65,11 +65,11 @@ struct CDatafile char *m_pData; }; -bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename) +bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename, int StorageType) { dbg_msg("datafile", "loading. filename='%s'", pFilename); - IOHANDLE File = pStorage->OpenFile(pFilename, IOFLAG_READ); + IOHANDLE File = pStorage->OpenFile(pFilename, IOFLAG_READ, StorageType); if(!File) { dbg_msg("datafile", "could not open '%s'", pFilename); @@ -394,7 +394,7 @@ unsigned CDataFileReader::Crc() bool CDataFileWriter::Open(class IStorage *pStorage, const char *pFilename) { dbg_assert(!m_File, "a file already exists"); - m_File = pStorage->OpenFile(pFilename, IOFLAG_WRITE); + m_File = pStorage->OpenFile(pFilename, IOFLAG_WRITE, IStorage::TYPE_SAVE); if(!m_File) return false; -- cgit 1.4.1