mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 09:09:49 +00:00
Retain the first directory level in logging.
This commit is contained in:
parent
4f1d2f0584
commit
47e2e6f718
@ -172,13 +172,21 @@ void LogManager::Log(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const
|
||||
char formattedTime[13];
|
||||
Common::Timer::GetTimeFormatted(formattedTime);
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifdef _WIN32
|
||||
const char *fileshort = strrchr(file, '\\');
|
||||
static const char sep = '\\';
|
||||
#else
|
||||
const char *fileshort = strrchr(file, '/');
|
||||
static const char sep = '/';
|
||||
#endif
|
||||
const char *fileshort = strrchr(file, sep);
|
||||
if (fileshort != NULL) {
|
||||
do
|
||||
--fileshort;
|
||||
while (fileshort > file && *fileshort != sep);
|
||||
if (fileshort != file)
|
||||
file = fileshort + 1;
|
||||
}
|
||||
#endif
|
||||
if (fileshort != NULL)
|
||||
file = fileshort + 1;
|
||||
|
||||
char *msgPos = msg;
|
||||
if (hleCurrentThreadName != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user