mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Use absoluteFilePath() when the filename is needed in the path
This commit is contained in:
@@ -141,7 +141,7 @@ void CaptureContext::LoadLogfileThreaded(const QString &logFile, const QString &
|
||||
m_LoadInProgress = true;
|
||||
|
||||
if(fi.exists())
|
||||
Config.Serialize(fi.absolutePath());
|
||||
Config.Serialize(fi.absoluteFilePath());
|
||||
|
||||
float loadProgress = 0.0f;
|
||||
float postloadProgress = 0.0f;
|
||||
@@ -200,7 +200,7 @@ void CaptureContext::LoadLogfileThreaded(const QString &logFile, const QString &
|
||||
PersistantConfig::AddRecentFile(Config.RecentLogFiles, origFilename, 10);
|
||||
|
||||
if(fi.exists())
|
||||
Config.Serialize(fi.absolutePath());
|
||||
Config.Serialize(fi.absoluteFilePath());
|
||||
}
|
||||
|
||||
m_EventID = 0;
|
||||
|
||||
@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
||||
argv_mod[i] = argv[i];
|
||||
|
||||
char arg[] = "-platformpluginpath";
|
||||
QString path = QFileInfo(argv[0]).absoluteDir().absolutePath();
|
||||
QString path = QFileInfo(argv[0]).absolutePath();
|
||||
QByteArray pathChars = path.toUtf8();
|
||||
|
||||
argv_mod[argc - 2] = arg;
|
||||
|
||||
Reference in New Issue
Block a user