Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up skins log messages #3244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/game/client/components/skins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ int CSkins::SkinScan(const char *pName, int IsDir, int DirType, void *pUser)

if(pJsonData == 0)
{
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, aBuf, aError);
str_format(aBuf, sizeof(aBuf), "failed to load skin '%s': %s", pName, aError);
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "skins", aBuf);
return 0;
}

Expand Down Expand Up @@ -324,13 +325,13 @@ void CSkins::OnInit()
{
char aBuf[128];
str_format(aBuf, sizeof(aBuf), "failed to load xmas hat '%s'", pFileName);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "game", aBuf);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "skins", aBuf);
}
else
{
char aBuf[128];
str_format(aBuf, sizeof(aBuf), "loaded xmas hat '%s'", pFileName);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "game", aBuf);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "skins", aBuf);
m_XmasHatTexture = Graphics()->LoadTextureRaw(Info.m_Width, Info.m_Height, Info.m_Format, Info.m_pData, Info.m_Format, 0);
mem_free(Info.m_pData);
}
Expand All @@ -345,13 +346,13 @@ void CSkins::OnInit()
{
char aBuf[128];
str_format(aBuf, sizeof(aBuf), "failed to load bot '%s'", pFileName);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "game", aBuf);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "skins", aBuf);
}
else
{
char aBuf[128];
str_format(aBuf, sizeof(aBuf), "loaded bot '%s'", pFileName);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "game", aBuf);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "skins", aBuf);
m_BotTexture = Graphics()->LoadTextureRaw(Info.m_Width, Info.m_Height, Info.m_Format, Info.m_pData, Info.m_Format, 0);
mem_free(Info.m_pData);
}
Expand Down
Loading