diff options
author | glx <glx@openttd.org> | 2008-01-17 00:21:43 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-01-17 00:21:43 +0000 |
commit | 69c18efdca89cef8ba94ed4a999aba9c1f3d6f25 (patch) | |
tree | c3a0444854aceb9850f7aaf640a626b7df68b815 /src/strings_func.h | |
parent | 4d9a9bf6ffed85f0c3f9ec12c8b4a2b7316e703a (diff) | |
download | openttd-69c18efdca89cef8ba94ed4a999aba9c1f3d6f25.tar.xz |
(svn r11886) -Add: sort the strings in languages dropdown
Diffstat (limited to 'src/strings_func.h')
-rw-r--r-- | src/strings_func.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/strings_func.h b/src/strings_func.h index e75ce8c67..9067f7049 100644 --- a/src/strings_func.h +++ b/src/strings_func.h @@ -69,6 +69,12 @@ void InitializeLanguagePacks(); int CDECL StringIDSorter(const void *a, const void *b); +/** Key comparison function for std::map */ +struct StringIDCompare +{ + bool operator()(StringID s1, StringID s2) { return StringIDSorter(&s1, &s2) < 0; } +}; + void CheckForMissingGlyphsInLoadedLanguagePack(); #endif /* STRINGS_TYPE_H */ |