From bed76b38564d955aab8ac0c494f0b5532e38c63a Mon Sep 17 00:00:00 2001 From: Liangdi Date: Tue, 12 Jan 2016 00:40:32 +0800 Subject: Fix xml opt with XML_ENABLE macro --- core/register_core_types.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/register_core_types.cpp b/core/register_core_types.cpp index fb17156df4..d977ea3e18 100644 --- a/core/register_core_types.cpp +++ b/core/register_core_types.cpp @@ -101,10 +101,12 @@ void register_core_types() { resource_loader_binary = memnew( ResourceFormatLoaderBinary ); ResourceLoader::add_resource_format_loader(resource_loader_binary); +#ifdef XML_ENABLED resource_saver_xml = memnew( ResourceFormatSaverXML ); ResourceSaver::add_resource_format_saver(resource_saver_xml); resource_loader_xml = memnew( ResourceFormatLoaderXML ); ResourceLoader::add_resource_format_loader(resource_loader_xml); +#endif ObjectTypeDB::register_type(); -- cgit v1.2.3