From 495846534d560f825819b7ee391e8c461ce76e4f Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 7 Dec 2015 20:09:34 +0100 Subject: - no longer displaying "not logged in". This was too confusing for some - fixed files missing from vfs if parent directory exists in real destination dir - implemented plugin api to access current profile - steam game detection now also works for 64-bit games - removed reference to archive tab from tutorial - usvfs log level is now taken from config - some cleanup --- src/usvfsconnector.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/usvfsconnector.cpp') diff --git a/src/usvfsconnector.cpp b/src/usvfsconnector.cpp index a29d806e..23a51891 100644 --- a/src/usvfsconnector.cpp +++ b/src/usvfsconnector.cpp @@ -19,6 +19,7 @@ along with Mod Organizer. If not, see . #include "usvfsconnector.h" +#include "settings.h" #include #include #include @@ -84,12 +85,21 @@ void LogWorker::process() void LogWorker::exit() { m_QuitRequested = true; +} +LogLevel logLevel(int level) +{ + switch (level) { + case LogLevel::Info: return LogLevel::Info; + case LogLevel::Warning: return LogLevel::Warning; + case LogLevel::Error: return LogLevel::Error; + default: return LogLevel::Debug; + } } UsvfsConnector::UsvfsConnector() { - usvfs::Parameters params(SHMID, false, LogLevel::Debug); + usvfs::Parameters params(SHMID, false, logLevel(Settings::instance().logLevel())); InitLogging(false); ConnectVFS(¶ms); -- cgit v1.3.1