Skip to content

Commit

Permalink
UI|Client: Minor improvements
Browse files Browse the repository at this point in the history
Don't warn about known shared libs not being plugins. Don't allow
negative time values in the "last updated since" string.
  • Loading branch information
skyjake committed Mar 27, 2015
1 parent df38e19 commit 8897b47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/apps/client/src/dd_plugin.cpp
Expand Up @@ -103,6 +103,14 @@ static int loadPlugin(void * /*libraryFile*/, char const *fileName, char const *
::Library *plugin = Library_New(pluginPath);
if(!plugin)
{
#ifdef UNIX
String const fn = Path(pluginPath).fileName();
if(fn.contains("libfmodex") || fn.contains("libassimp"))
{
// No need to warn about these shared libs.
return 0;
}
#endif
LOG_RES_WARNING("Failed to load \"%s\": %s") << pluginPath << Library_LastError();
return 0; // Continue iteration.
}
Expand Down
1 change: 1 addition & 0 deletions doomsday/apps/client/src/updater/updatersettings.cpp
Expand Up @@ -171,6 +171,7 @@ de::String UpdaterSettings::lastCheckAgo() const
if(!when.isValid()) return ""; // Never checked.

de::TimeDelta delta = when.since();
if(delta < 0.0) return "";

int t;
if(delta < 60.0)
Expand Down

0 comments on commit 8897b47

Please sign in to comment.