Make text formats preferent over binary ones

This commit is contained in:
Pedro J. Estébanez 2016-06-28 19:08:41 +02:00
parent 92f10a3582
commit 1492fd8460

View file

@ -100,17 +100,17 @@ void register_core_types() {
resource_format_po = memnew( TranslationLoaderPO );
ResourceLoader::add_resource_format_loader( resource_format_po );
// Register text formats before to give them precedence on saving
resource_saver_text = memnew( ResourceFormatSaverText );
ResourceSaver::add_resource_format_saver(resource_saver_text);
resource_loader_text = memnew( ResourceFormatLoaderText );
ResourceLoader::add_resource_format_loader(resource_loader_text);
resource_saver_binary = memnew( ResourceFormatSaverBinary );
ResourceSaver::add_resource_format_saver(resource_saver_binary);
resource_loader_binary = memnew( ResourceFormatLoaderBinary );
ResourceLoader::add_resource_format_loader(resource_loader_binary);
resource_saver_text = memnew( ResourceFormatSaverText );
ResourceSaver::add_resource_format_saver(resource_saver_text);
resource_loader_text = memnew( ResourceFormatLoaderText );
ResourceLoader::add_resource_format_loader(resource_loader_text);
#ifdef XML_ENABLED
resource_saver_xml = memnew( ResourceFormatSaverXML );
ResourceSaver::add_resource_format_saver(resource_saver_xml);