Go to the source code of this file.
Functions |
|
ScripterExport bool | LocateScriptResourceFile (const MCHAR *scriptFileName, MSTR &resourceFileName) |
Locates the resource file for the specified
script file name. |
|
ScripterExport HashTable * | LoadScriptResourceFile (const MCHAR *resourceFileName) |
Loads the specified resource file. |
|
ScripterExport TSTR | GetSystemLocaleName (bool user_default_locale) |
Returns the system's localization language
and country name. |
|
ScripterExport TSTR | GetMaxLocaleName () |
Returns Max's localization language and
country name. |
ScripterExport bool LocateScriptResourceFile | ( | const MCHAR * | scriptFileName, |
MSTR & | resourceFileName | ||
) |
Locates the resource file for the specified script file name.
The filename portion of the resource file name is the script file name plus a ".res" extension ([script.res] = <scriptname>.res). The resource file is looked for in the following locations, in the order given:
[in] | scriptFileName | - The fully qualified script file name |
[out] | resourceFileName | - The resource file name if found |
ScripterExport HashTable* LoadScriptResourceFile | ( | const MCHAR * | resourceFileName | ) |
Loads the specified resource file.
Each line in the resource file consists of the resource id and the resource value. This creates and returns a HashTable where the resource id is the key and the resource value is the value. If the resource file does not exist, NULL will be returned.
resourceFileName | - The fully qualified resource file name |
ScripterExport TSTR GetSystemLocaleName | ( | bool | user_default_locale | ) |
Returns the system's localization language and country name.
The system's localization language and country name are determined by querying the system for its ISO languange and country locale names.
[in] | user_default_locale | - If true, default locale for the user is returned. If false, default locale for the system is returned. |
ScripterExport TSTR GetMaxLocaleName | ( | ) |
Returns Max's localization language and country name.
Max's localization language and country name are determined by querying Max for its language id and returning the appropriate ISO language and country locale name.