SDL: Remove misleading comments, based on incomplete information at MSDN. GetLocalInfo is supported on Windows 95 onwards, but MSDN fails to mention older Windows versions.
This commit is contained in:
parent
a99f3ca817
commit
3950dad947
1 changed files with 0 additions and 11 deletions
|
@ -369,17 +369,6 @@ Common::String OSystem_SDL::getSystemLanguage() const {
|
|||
|
||||
const LCID languageIdentifier = GetThreadLocale();
|
||||
|
||||
// GetLocalInfo is only supported starting from Windows 2000, according to this:
|
||||
// http://msdn.microsoft.com/en-us/library/dd318101%28VS.85%29.aspx
|
||||
// On the other hand the locale constants used, seem to exist on Windows 98 too,
|
||||
// check this for that: http://msdn.microsoft.com/en-us/library/dd464799%28v=VS.85%29.aspx
|
||||
//
|
||||
// I am not exactly sure what is the truth now, it might be very well that this breaks
|
||||
// support for systems older than Windows 2000....
|
||||
//
|
||||
// TODO: Check whether this (or ScummVM at all ;-) works on a system with Windows 98 for
|
||||
// example and if it does not and we still want Windows 9x support, we should definitly
|
||||
// think of another solution.
|
||||
if (GetLocaleInfo(languageIdentifier, LOCALE_SISO639LANGNAME, langName, sizeof(langName)) != 0 &&
|
||||
GetLocaleInfo(languageIdentifier, LOCALE_SISO3166CTRYNAME, ctryName, sizeof(ctryName)) != 0) {
|
||||
Common::String localeName = langName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue