When writing performance sampling data, respect the PHYSFS write dir.
Patch by vexed, closes ticket:4098.master
parent
491c1c3f4a
commit
6d34c718db
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue