Make text formats preferent over binary ones
This commit is contained in:
parent
92f10a3582
commit
1492fd8460
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue