Record of text tokens that went without a localisation, kept for the report at the end of a load.
More...
#include <localizeerrors.h>
Record of text tokens that went without a localisation, kept for the report at the end of a load.
The RTTI includes the class name through the lists that store it. The object is 0x20 bytes. UIPanel::LocalizeTexts() records the tokens of a panel's file that the locale lacks, and UIManager::ReportLocalizeErrors() records the locale's tokens no loaded object used. Store() keeps a copy until the report. The edit mode of the ui configuration turns the token counts on.
◆ Type
What a record lists, the values of mType.
| Enumerator |
|---|
| kTypeMissing | Tokens of a file that the locale lacks.
|
| kTypeUnused | Tokens of the locale that no loaded object used.
|
◆ LocalizeErrors() [1/3]
| LocalizeErrors::LocalizeErrors |
( |
const char * | pszFile | ) |
|
|
inlineexplicit |
◆ LocalizeErrors() [2/3]
| LocalizeErrors::LocalizeErrors |
( |
int | nType | ) |
|
|
inlineexplicit |
◆ LocalizeErrors() [3/3]
Copy another record.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x003786b8
- Ghidra address:
- PAL: 0x003e6de8
◆ Store()
| void LocalizeErrors::Store |
( |
| ) |
|
Keep a copy of the record for the report.
- Ghidra address:
- NTSC-U/C: 0x00209978
- Ghidra address:
- PAL: 0x00212778
◆ CountToken()
| void LocalizeErrors::CountToken |
( |
const char * | pszToken, |
|
|
int | nCount ) |
|
static |
Add to the number of times a token was used.
- Parameters
-
| pszToken | The token. |
| nCount | The number to add. |
- Ghidra address:
- NTSC-U/C: 0x00209a80
- Ghidra address:
- PAL: 0x00212880
◆ CountLocaleTokens()
| void LocalizeErrors::CountLocaleTokens |
( |
| ) |
|
|
static |
Enter every token of the locale in the counts, with no uses added.
- Ghidra address:
- NTSC-U/C: 0x00209c30
- Ghidra address:
- PAL: 0x00212a30
◆ GetFile()
| const String & LocalizeErrors::GetFile |
( |
| ) |
const |
|
inline |
- Returns
- The file the tokens came from, or empty.
◆ GetType()
| int LocalizeErrors::GetType |
( |
| ) |
const |
|
inline |
◆ GetErrors() [1/2]
| std::list< SingleError > & LocalizeErrors::GetErrors |
( |
| ) |
|
|
inline |
◆ GetErrors() [2/2]
| const std::list< SingleError > & LocalizeErrors::GetErrors |
( |
| ) |
const |
|
inline |
◆ GetRecords()
- Returns
- The records Store() retained, or null before the first Store().
◆ GetTokenCounts()
| std::map< String, int > * LocalizeErrors::GetTokenCounts |
( |
| ) |
|
|
inlinestatic |
- Returns
- The number of uses of each token, or null before the first CountToken().
◆ ClearRecords()
| void LocalizeErrors::ClearRecords |
( |
| ) |
|
|
inlinestatic |
Delete the records Store() retained.
◆ ClearTokenCounts()
| void LocalizeErrors::ClearTokenCounts |
( |
| ) |
|
|
inlinestatic |
Delete the counts of the uses of each token.
The documentation for this class was generated from the following file: