From cc7e7c6f3920c80738def7c7e6fc8607a19c55a3 Mon Sep 17 00:00:00 2001 From: Colden Cullen Date: Fri, 16 May 2014 15:29:50 -0400 Subject: [PATCH] Disable refreshing when using a Content.yml file. --- source/utility/config.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/utility/config.d b/source/utility/config.d index 7c2db68d..92d6143e 100644 --- a/source/utility/config.d +++ b/source/utility/config.d @@ -239,6 +239,10 @@ Node[] loadAllDocumentsInYamlFile( string filePath ) */ void refreshYamlObjects( alias createFunc, alias existsFunc, alias addToResourcesFunc, alias removeFunc, ObjectType )( ref ObjectType[][Resource] objectResources ) { + // Disable refreshing YAML from a single file. + if( !contentNode.isNull ) + return; + // Iterate over each file, and it's objects foreach( file, ref objs; objectResources.dup ) {