diff options
| author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-05-01 11:00:21 +0200 |
|---|---|---|
| committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-05-01 11:00:21 +0200 |
| commit | 95f097d79b37fef64752d40e3247da6f7f818932 (patch) | |
| tree | 9f7ec021973d3a6072eeb3c4c0aeb2019f2bb280 /Source/Core/Common/LogManager.cpp | |
| parent | 2cf8f55ad35da2344dabb72ec0683988ddc52ef5 (diff) | |
Revert "Merge pull request #62 from degasus/log_truncate_path" because it was merged without consensus.
This reverts commit 1b581b7c27e06ed19d28e04c4345ce181fafc36e, reversing
changes made to 951612f08e1db15aeef35512bcb37d93dcb30b25.
Diffstat (limited to 'Source/Core/Common/LogManager.cpp')
| -rw-r--r-- | Source/Core/Common/LogManager.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/Core/Common/LogManager.cpp b/Source/Core/Common/LogManager.cpp index cb86d045d7..bc4f9300c6 100644 --- a/Source/Core/Common/LogManager.cpp +++ b/Source/Core/Common/LogManager.cpp @@ -22,19 +22,6 @@ void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char *file, int line, const char* fmt, ...) { -#ifdef _WIN32 - int delimiter = '\\'; -#else - int delimiter = '/'; -#endif - // The used macro __FILE__ differs between GCC and VS: - // GCC defines the full path, VS relative to the local project file. - // It would be the best to get the one relative to the project directory, - // but the full path is even worse, so just strip it to the filename itself. - const char* basefile = strrchr(file, delimiter); - if(basefile != nullptr) - file = basefile + 1; - va_list args; va_start(args, fmt); if (LogManager::GetInstance()) |
