Skip to content

Commit

Permalink
Disable refreshing when using a Content.yml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdenCullen committed May 16, 2014
1 parent 34221ea commit cc7e7c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/utility/config.d
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit cc7e7c6

Please sign in to comment.