Fix writing of server id file for unicode folder
This commit is contained in:
parent
10c0515c88
commit
3944d81cfc
@ -839,8 +839,9 @@ void ServerLobby::createServerIdFile()
|
|||||||
std::fstream fs;
|
std::fstream fs;
|
||||||
sid += StringUtils::toString(m_server_id_online.load()) + "_" +
|
sid += StringUtils::toString(m_server_id_online.load()) + "_" +
|
||||||
StringUtils::toString(STKHost::get()->getPrivatePort());
|
StringUtils::toString(STKHost::get()->getPrivatePort());
|
||||||
fs.open(sid, std::ios::out);
|
io::IWriteFile* file = irr::io::createWriteFile(sid.c_str(), false);
|
||||||
fs.close();
|
if (file)
|
||||||
|
file->drop();
|
||||||
m_has_created_server_id_file = true;
|
m_has_created_server_id_file = true;
|
||||||
}
|
}
|
||||||
} // createServerIdFile
|
} // createServerIdFile
|
||||||
|
Loading…
Reference in New Issue
Block a user