mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
Fix chat whitelist path in UserManager error log (#853)
This commit is contained in:
parent
e2616c5f11
commit
af28d170fb
@ -77,7 +77,7 @@ void UserManager::Initialize() {
|
|||||||
//Load our pre-approved names:
|
//Load our pre-approved names:
|
||||||
AssetMemoryBuffer chatListBuff = Game::assetManager->GetFileAsBuffer("chatplus_en_us.txt");
|
AssetMemoryBuffer chatListBuff = Game::assetManager->GetFileAsBuffer("chatplus_en_us.txt");
|
||||||
if (!chatListBuff.m_Success) {
|
if (!chatListBuff.m_Success) {
|
||||||
Game::logger->Log("UserManager", "Failed to load %s", (Game::assetManager->GetResPath() / "names/chatplus_en_us.txt").string().c_str());
|
Game::logger->Log("UserManager", "Failed to load %s", (Game::assetManager->GetResPath() / "chatplus_en_us.txt").string().c_str());
|
||||||
throw std::runtime_error("Aborting initialization due to missing chat whitelist file.");
|
throw std::runtime_error("Aborting initialization due to missing chat whitelist file.");
|
||||||
}
|
}
|
||||||
std::istream chatListStream = std::istream(&chatListBuff);
|
std::istream chatListStream = std::istream(&chatListBuff);
|
||||||
|
Loading…
Reference in New Issue
Block a user