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/game/editor/ed_io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/editor/ed_io.cpp') diff --git a/src/game/editor/ed_io.cpp b/src/game/editor/ed_io.cpp index 6eae9fb5..62e3cf65 100644 --- a/src/game/editor/ed_io.cpp +++ b/src/game/editor/ed_io.cpp @@ -372,7 +372,7 @@ int CEditorMap::Load(class IStorage *pStorage, const char *pFileName) { CDataFileReader DataFile; //DATAFILE *df = datafile_load(filename); - if(!DataFile.Open(pStorage, pFileName)) + if(!DataFile.Open(pStorage, pFileName, IStorage::TYPE_ALL)) return 0; Clean(); @@ -411,7 +411,7 @@ int CEditorMap::Load(class IStorage *pStorage, const char *pFileName) // load external CEditorImage ImgInfo(m_pEditor); - if(m_pEditor->Graphics()->LoadPNG(&ImgInfo, aBuf)) + if(m_pEditor->Graphics()->LoadPNG(&ImgInfo, aBuf, IStorage::TYPE_ALL)) { *pImg = ImgInfo; pImg->m_TexId = m_pEditor->Graphics()->LoadTextureRaw(ImgInfo.m_Width, ImgInfo.m_Height, ImgInfo.m_Format, ImgInfo.m_pData, CImageInfo::FORMAT_AUTO, 0); -- cgit 1.4.1