From 41caeedb0549ccc4e60f010ecfe1cb480628b611 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sat, 23 Feb 2019 14:20:57 -0600 Subject: [PATCH] Tweaks to the Asset/Module info echo behavior to spam the console less. --- Engine/source/assets/assetManager.cpp | 6 +++--- Engine/source/module/moduleManager.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Engine/source/assets/assetManager.cpp b/Engine/source/assets/assetManager.cpp index c2591a84f..2018dd57c 100644 --- a/Engine/source/assets/assetManager.cpp +++ b/Engine/source/assets/assetManager.cpp @@ -130,8 +130,8 @@ void AssetManager::initPersistFields() // Call parent. Parent::initPersistFields(); - addField( "EchoInfo", TypeBool, Offset(mEchoInfo, AssetManager), "Whether the asset manager echos extra information to the console or not." ); - addField( "IgnoreAutoUnload", TypeBool, Offset(mIgnoreAutoUnload, AssetManager), "Whether the asset manager should ignore unloading of auto-unload assets or not." ); + addField( "EchoInfo", TypeBool, false, Offset(mEchoInfo, AssetManager), "Whether the asset manager echos extra information to the console or not." ); + addField( "IgnoreAutoUnload", TypeBool, true, Offset(mIgnoreAutoUnload, AssetManager), "Whether the asset manager should ignore unloading of auto-unload assets or not." ); } //----------------------------------------------------------------------------- @@ -228,7 +228,7 @@ bool AssetManager::loadModuleAutoLoadAssets(ModuleDefinition* pModuleDefinition) AssertFatal(pModuleDefinition != NULL, "Cannot auto load assets using a NULL module definition"); // Does the module have any assets associated with it? - if (pModuleDefinition->getModuleAssets().empty()) + if (pModuleDefinition->getModuleAssets().empty() && mEchoInfo) { // Yes, so warn. Con::warnf("Asset Manager: Cannot auto load assets to module '%s' as it has no existing assets.", pModuleDefinition->getSignature()); diff --git a/Engine/source/module/moduleManager.cpp b/Engine/source/module/moduleManager.cpp index c5d3b42f6..e122177e8 100644 --- a/Engine/source/module/moduleManager.cpp +++ b/Engine/source/module/moduleManager.cpp @@ -69,7 +69,7 @@ S32 QSORT_CALLBACK moduleDefinitionVersionIdSort( const void* a, const void* b ) ModuleManager::ModuleManager() : mEnforceDependencies(true), - mEchoInfo(true), + mEchoInfo(false), mDatabaseLocks( 0 ), mIgnoreLoadedGroups(false) {