When writing performance sampling data, respect the PHYSFS write dir.

Patch by vexed, closes ticket:4098.
master
per 2013-11-17 14:59:38 +01:00
parent 491c1c3f4a
commit 6d34c718db
1 changed files with 3 additions and 1 deletions

View File

@ -229,8 +229,10 @@ void wzPerfShutdown()
{
return;
}
QString ourfile = PHYSFS_getWriteDir();
ourfile.append("gfx-performance.csv");
// write performance counter list to file
QFile perf("gfx-performance.csv");
QFile perf(ourfile);
perf.open(QIODevice::WriteOnly);
perf.write("START, EFF, TERRAIN, LOAD, PRTCL, WATER, MODELS, MISC\n");
for (int i = 0; i < perfList.size(); i++)