Manually fix the less trivial CLogger format strings.
This was SVN commit r16184.
This commit is contained in:
parent
49e2ecea63
commit
e9a33b71ae
@ -55,8 +55,7 @@ CTerrainPropertiesPtr CTerrainProperties::FromXML(const CTerrainPropertiesPtr& p
|
||||
// Check that we've got the right kind of xml document
|
||||
if (rootName != "Terrains")
|
||||
{
|
||||
LOGERROR(
|
||||
L"TerrainProperties: Loading %ls: Root node is not terrains (found \"%hs\")",
|
||||
LOGERROR("TerrainProperties: Loading %ls: Root node is not terrains (found \"%hs\")",
|
||||
pathname.string().c_str(),
|
||||
rootName.c_str());
|
||||
return CTerrainPropertiesPtr();
|
||||
@ -80,8 +79,7 @@ CTerrainPropertiesPtr CTerrainProperties::FromXML(const CTerrainPropertiesPtr& p
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGWARNING(
|
||||
L"TerrainProperties: Loading %ls: Unexpected node %hs\n",
|
||||
LOGWARNING("TerrainProperties: Loading %ls: Unexpected node %hs\n",
|
||||
pathname.string().c_str(),
|
||||
XeroFile.GetElementString(child.GetNodeName()).c_str());
|
||||
// Keep reading - typos shouldn't be showstoppers
|
||||
|
@ -253,7 +253,7 @@ void CTerrainTextureEntry::LoadAlphaMaps(VfsPath &amtype)
|
||||
if (textures[i] < 0)
|
||||
{
|
||||
g_TexMan.m_TerrainAlphas.erase(it);
|
||||
LOGERROR((L"Failed to load alphamap: " + amtype.string()).c_str());
|
||||
LOGERROR("Failed to load alphamap: %s", amtype.string());
|
||||
|
||||
VfsPath standard("standard");
|
||||
if (path != standard)
|
||||
@ -362,4 +362,4 @@ void CTerrainTextureEntry::LoadAlphaMaps(VfsPath &amtype)
|
||||
result.m_hCompositeAlphaMap = hCompositeAlphaMap;
|
||||
|
||||
m_TerrainAlpha = it;
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ Status SavedGames::Save(const std::wstring& name, const std::wstring& descriptio
|
||||
|
||||
OsPath realPath;
|
||||
WARN_RETURN_STATUS_IF_ERR(g_VFS->GetRealPath(filename, realPath));
|
||||
LOGMESSAGERENDER(wstring_from_utf8(g_L10n.Translate("Saved game to '%ls'") + "\n").c_str(), realPath.string().c_str());
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Saved game to '%ls'"), realPath.string().c_str());
|
||||
|
||||
return INFO::OK;
|
||||
}
|
||||
|
@ -241,7 +241,7 @@ void WriteScreenshot(const VfsPath& extension)
|
||||
{
|
||||
OsPath realPath;
|
||||
g_VFS->GetRealPath(filename, realPath);
|
||||
LOGMESSAGERENDER(wstring_from_utf8(g_L10n.Translate("Screenshot written to '%ls'")).c_str(), realPath.string().c_str());
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Screenshot written to '%ls'"), realPath.string().c_str());
|
||||
}
|
||||
else
|
||||
LOGERROR("Error writing screenshot to '%ls'", filename.string().c_str());
|
||||
@ -374,7 +374,7 @@ void WriteBigScreenshot(const VfsPath& extension, int tiles)
|
||||
{
|
||||
OsPath realPath;
|
||||
g_VFS->GetRealPath(filename, realPath);
|
||||
LOGMESSAGERENDER(wstring_from_utf8(g_L10n.Translate("Screenshot written to '%ls'")).c_str(), realPath.string().c_str());
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Screenshot written to '%ls'"), realPath.string().c_str());
|
||||
}
|
||||
else
|
||||
LOGERROR("Error writing screenshot to '%ls'", filename.string().c_str());
|
||||
|
@ -89,7 +89,7 @@ bool CVideoMode::SetVideoMode(int w, int h, int bpp, bool fullscreen)
|
||||
if (fullscreen)
|
||||
{
|
||||
LOGWARNING("Failed to set the video mode to fullscreen for the chosen resolution "
|
||||
L"%dx%d:%d (\"%hs\"), falling back to windowed mode",
|
||||
"%dx%d:%d (\"%hs\"), falling back to windowed mode",
|
||||
w, h, bpp, SDL_GetError());
|
||||
// Using default size for the window for now, as the attempted setting
|
||||
// could be as large, or larger than the screen size.
|
||||
@ -173,7 +173,7 @@ bool CVideoMode::SetVideoMode(int w, int h, int bpp, bool fullscreen)
|
||||
if (fullscreen)
|
||||
{
|
||||
LOGWARNING("Failed to set the video mode to fullscreen for the chosen resolution "
|
||||
L"%dx%d:%d (\"%hs\"), falling back to windowed mode",
|
||||
"%dx%d:%d (\"%hs\"), falling back to windowed mode",
|
||||
w, h, bpp, SDL_GetError());
|
||||
// Using default size for the window for now, as the attempted setting
|
||||
// could be as large, or larger than the screen size.
|
||||
|
@ -78,7 +78,7 @@ bool COggData::InitOggFile(const VfsPath& itemPath)
|
||||
|
||||
if(alGetError() != AL_NO_ERROR)
|
||||
{
|
||||
LOGERROR( L"- Error creating initial buffer !!\n");
|
||||
LOGERROR( "- Error creating initial buffer !!\n");
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
@ -197,7 +197,7 @@ void CSoundGroup::UploadPropertiesAndPlay(size_t theIndex, const CVector3D& posi
|
||||
itemRollOff = 0;
|
||||
|
||||
if ( sndData->IsStereo() )
|
||||
LOGWARNING( L"OpenAL: stereo sounds can't be positioned: %ls", sndData->GetFileName()->string().c_str() );
|
||||
LOGWARNING( "OpenAL: stereo sounds can't be positioned: %ls", sndData->GetFileName()->string().c_str() );
|
||||
|
||||
hSound->SetLocation(CVector3D((sndDist * sin(offSet)), 0, - sndDist * cos(offSet)));
|
||||
hSound->SetRollOff(itemRollOff);
|
||||
|
Loading…
Reference in New Issue
Block a user