sharepath bytearray try

This commit is contained in:
Rafael 2016-04-14 07:00:00 +02:00
parent a12edb32bb
commit 88730a7edc

View file

@ -54,7 +54,8 @@ QString StringParser::convertLogStringForDraw(const QString &inputStr)
QString StringParser::convertBuildedString(const QString &buildedStr)
{
QString outputStr = buildedStr;
outputStr.replace("$SHAREDIR", QString(GTA5SYNC_SHARE));
QByteArray sharePath = GTA5SYNC_SHARE;
outputStr.replace("$SHAREDIR", QString::fromUtf8(sharePath));
outputStr.replace("$RUNDIR", QFileInfo(qApp->applicationFilePath()).absoluteDir().absolutePath());
outputStr.replace("$SEPARATOR", QDir::separator());
return outputStr;