mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
use stdstring
This commit is contained in:
parent
7b311ddeec
commit
c5f4afcaa6
1 changed files with 5 additions and 5 deletions
|
|
@ -179,19 +179,19 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef Q_OS_APPLE
|
#ifdef Q_OS_APPLE
|
||||||
// <build>/cockatrice/cockatrice.app/Contents/MacOS/cockatrice
|
// <build>/cockatrice/cockatrice.app/Contents/MacOS/cockatrice
|
||||||
const QString configPath = "../../../qtlogging.ini";
|
std::string configPath = "../../../qtlogging.ini";
|
||||||
#elif defined(Q_OS_UNIX)
|
#elif defined(Q_OS_UNIX)
|
||||||
// <build>/cockatrice/cockatrice
|
// <build>/cockatrice/cockatrice
|
||||||
const QString configPath = "./qtlogging.ini";
|
std::string configPath = "./qtlogging.ini";
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
// <build>/cockatrice/Debug/cockatrice.exe
|
// <build>/cockatrice/Debug/cockatrice.exe
|
||||||
const QString configPath = "../qtlogging.ini";
|
std::string configPath = "../qtlogging.ini";
|
||||||
#else
|
#else
|
||||||
const QString configPath = "";
|
std::string configPath = "";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set the QT_LOGGING_CONF environment variable
|
// Set the QT_LOGGING_CONF environment variable
|
||||||
qputenv("QT_LOGGING_CONF", configPath.toStdString());
|
qputenv("QT_LOGGING_CONF", configPath);
|
||||||
qSetMessagePattern(
|
qSetMessagePattern(
|
||||||
"\033[0m[%{time yyyy-MM-dd h:mm:ss.zzz} "
|
"\033[0m[%{time yyyy-MM-dd h:mm:ss.zzz} "
|
||||||
"%{if-debug}\033[36mD%{endif}%{if-info}\033[32mI%{endif}%{if-warning}\033[33mW%{endif}%{if-critical}\033[31mC%{"
|
"%{if-debug}\033[36mD%{endif}%{if-info}\033[32mI%{endif}%{if-warning}\033[33mW%{endif}%{if-critical}\033[31mC%{"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue