From 0a5461db730e328aed74936b15a9bd8d2d80b5ab Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sat, 7 May 2005 00:17:05 +0000 Subject: [PATCH] Recompiled ScEd. This was SVN commit r2252. --- source/graphics/MapReader.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/graphics/MapReader.cpp b/source/graphics/MapReader.cpp index 3cab7454fa..9252c2bbbc 100755 --- a/source/graphics/MapReader.cpp +++ b/source/graphics/MapReader.cpp @@ -292,11 +292,12 @@ void CXMLReader::Init(const CStr& xml_filename) CStr vfs_filename(xml_filename); vfs_filename = vfs_filename.substr(vfs_filename.ReverseFind("\\mods\\official\\") + 15); vfs_filename.Replace("\\", "/"); - xml_filename = vfs_filename; -#endif - + if (xmb_file.Load(vfs_filename) != PSRETURN_OK) + throw CFileUnpacker::CFileReadError(); +#else if (xmb_file.Load(xml_filename) != PSRETURN_OK) throw CFileUnpacker::CFileReadError(); +#endif // define all the elements and attributes used in the XML file. #define EL(x) el_##x = xmb_file.getElementID(#x)