#include <map>
#include "os/hxstr.h"
Go to the source code of this file.
|
| void | RegisterScriptTemplate (int nTemplate, const HxStr &text) |
| | Register a script call template in g_scriptTemplates.
|
| HxStr | Resid2Str (unsigned int nResid) |
| | Look a script call template up in g_scriptTemplates.
|
◆ RegisterScriptTemplate()
| void RegisterScriptTemplate |
( |
int | nTemplate, |
|
|
const HxStr & | text ) |
Register a script call template in g_scriptTemplates.
RegisterScriptCallTemplates() and the routine at 0x005e1210 are the callers, each passing a temporary built from a literal.
- Parameters
-
| nTemplate | The identifier. |
| text | The template text. |
- Ghidra address:
- NTSC-U/C: 0x00466470
- Ghidra address:
- PAL: 0x004a3ea0
◆ Resid2Str()
| HxStr Resid2Str |
( |
unsigned int | nResid | ) |
|
Look a script call template up in g_scriptTemplates.
CallScriptTemplate(), the script evaluators, and the configuration queries read templates through this routine.
- Parameters
-
- Returns
- A copy of the template, or an empty string when none is registered.
- Ghidra address:
- NTSC-U/C: 0x00466438
- Ghidra address:
- PAL: 0x004a3e68
◆ g_scriptTemplates
Every script call template.
- Ghidra address:
- NTSC-U/C: 0x00773fb0
- Ghidra address:
- PAL: 0x007506a8