huge cleanup and conversion of most string handling (especially paths) to unicode

please note: format strings must be %hs for char* arguments and %ls for
wchar_t*

This was SVN commit r7161.
This commit is contained in:
janwas
2009-11-03 21:46:35 +00:00
parent a46f3432f3
commit 8a52113e60
317 changed files with 2517 additions and 2588 deletions
+3 -3
View File
@@ -48,13 +48,13 @@ void SetFromNetString(int &val, const CStrW& string)
template <>
CStrW ToNetString(const bool &val)
{
return val ? CStrW("true") : CStrW("false");
return val ? L"true" : L"false";
}
template <>
void SetFromNetString(bool &val, const CStrW& string)
{
val = (string == CStrW("true"));
val = (string == L"true");
}
template <>
@@ -75,7 +75,7 @@ CStrW ToNetString(const SColour &data)
swprintf(buf, 256, L"%f %f %f %f", data.r, data.g, data.b, data.a);
buf[255]=0;
return CStrW(buf);
return buf;
}
template <>