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:
- The directory the script file is in ([scriptdir][script.res])
- A subdirectory of the directory the script file is in, where the subdirectory name is the localization name (en-US, fr-FR, ja-JP, etc.) ([scriptdir]<lang>[script.res])
- IFF script is in install tree, the localized shadow directory under the install directory ([installdir]<lang>[shadow tree][script.res])
- The en-US subdirectory of the directory the script file is in ([scriptdir]\en-US[script.res])
- IFF script is in install tree, the english shadow directory under the install directory ([installdir]\en-US[shadow tree][script.res])
- Parameters
-
[in] | scriptFileName | - The fully qualified script file name |
[out] | resourceFileName | - The resource file name if found |
- Returns
- True if the resource file name was located.