mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Use IStorage::FormatTmpPath
function for editor map names
This commit is contained in:
parent
424d789f47
commit
a55d49833e
|
@ -36,7 +36,8 @@ struct CSoundSource_DEPRECATED
|
|||
bool CEditorMap::Save(const char *pFileName)
|
||||
{
|
||||
char aFileNameTmp[IO_MAX_PATH_LENGTH];
|
||||
str_format(aFileNameTmp, sizeof(aFileNameTmp), "%s.%d.tmp", pFileName, pid());
|
||||
IStorage::FormatTmpPath(aFileNameTmp, sizeof(aFileNameTmp), pFileName);
|
||||
|
||||
char aBuf[IO_MAX_PATH_LENGTH + 64];
|
||||
str_format(aBuf, sizeof(aBuf), "saving to '%s'...", aFileNameTmp);
|
||||
m_pEditor->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "editor", aBuf);
|
||||
|
|
Loading…
Reference in a new issue