Skip to content

Commit

Permalink
Use separate minimap temporary files per process when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonekk committed Nov 7, 2024
1 parent 3722e1a commit e705815
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/minimap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

#include <framework/util/stats.h>

#include <unistd.h>

Minimap g_minimap;

void MinimapBlock::clean()
Expand Down Expand Up @@ -383,6 +385,7 @@ void Minimap::saveOtmm(const std::string& fileName)

#ifndef ANDROID
std::string tmpFileName = fileName;
tmpFileName += "." + std::to_string(getpid());
tmpFileName += ".tmp";
FileStreamPtr fin = g_resources.createFile(tmpFileName);
#else
Expand Down

0 comments on commit e705815

Please sign in to comment.