From 46a30b686b655dcb7399813b4f7712ec6d835800 Mon Sep 17 00:00:00 2001 From: skyjake Date: Fri, 12 Jul 2013 19:51:35 +0300 Subject: [PATCH] Fixed|Ring Zero: Suppressed a couple of unnecessary warnings There is no need to show warnings about game plugin help strings and patch loading failures when no game is loaded. --- doomsday/client/src/dd_help.cpp | 7 +++++-- doomsday/client/src/resource/r_data.cpp | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doomsday/client/src/dd_help.cpp b/doomsday/client/src/dd_help.cpp index 41ff40bdf2..cd5abfa521 100644 --- a/doomsday/client/src/dd_help.cpp +++ b/doomsday/client/src/dd_help.cpp @@ -180,8 +180,11 @@ void DD_ReadGameHelp(void) LOG_AS("DD_ReadGameHelp"); try { - de::Uri uri(Path("$(App.DataPath)/$(GamePlugin.Name)/conhelp.txt")); - readStrings(App::fileSystem().find(uri.resolved())); + if(App_GameLoaded()) + { + de::Uri uri(Path("$(App.DataPath)/$(GamePlugin.Name)/conhelp.txt")); + readStrings(App::fileSystem().find(uri.resolved())); + } } catch(Error const &er) { diff --git a/doomsday/client/src/resource/r_data.cpp b/doomsday/client/src/resource/r_data.cpp index 211fff8e85..22291af047 100644 --- a/doomsday/client/src/resource/r_data.cpp +++ b/doomsday/client/src/resource/r_data.cpp @@ -362,8 +362,10 @@ static void loadPatchNames(String lumpName) } catch(LumpIndex::NotFoundError const &er) { - // Log but otherwise ignore this error. - LOG_WARNING(er.asText() + ", ignoring."); + if(App_GameLoaded()) + { + LOG_WARNING(er.asText()); + } } }