StormLib API Reference
SFileSetLocale
LCID WINAPI SFileSetLocale( LCID lcNewLocale // Locale ID for file operations );
Function SFileSetLocale sets a preferred locale for file functions, such as SFileOpenFileEx or SFileAddFileEx. The locale is stored as a global variable and thus affects every open or add operation.
Note that this function does not change locale ID of any existing file in the MPQ.
The function never fails and always returns lcNewLocale.
The locale ID corresponds to the country ID. Country IDs are defined in Windows headers. The following table shows an example of existing locales:
Value | Language version | Value | Language version |
---|---|---|---|
0 | Neutral/English (American) | 0x404 | Chinese (Taiwan) |
0x405 | Czech | 0x407 | German |
0x409 | English | 0x40a | Spanish |
0x40c | French | 0x410 | Italian |
0x411 | Japanese | 0x412 | Korean |
0x415 | Polish | 0x416 | Portuguese |
0x419 | Russsian | 0x809 | English (UK) |
Different StormLib functions treat the preferred locale differently:
Available in Storm.dll | Yes |
Ordinal number in Storm.dll 1.00 | 83 (0x053) |
Ordinal number in Storm.dll 1.09 | 272 (0x110) |
Copyright (c) Ladislav Zezula 2003 - 2010