wavelength 1.0.0
Loading...
Searching...
No Matches
Locale Class Reference

Text of the user interface in the console language. More...

#include <locale.h>

Public Member Functions

 Locale ()
 Construct a locale with no text loaded.
virtual ~Locale ()
 Release the text through Terminate().
void Init (const char *pszLanguage)
 Build the text table of one language from the configuration.
void Terminate ()
 Release the text table, if one is loaded.
const char * Localize (const char *pszToken, bool bFail)
 Look up the text of a token in the language Init() loaded.
DataArray * GetStrings () const
int GetFileCount () const
 Locale ()
 Create a locale with no table.
virtual ~Locale ()
 Release the table.
void Terminate ()
 Release the table.

Detailed Description

Text of the user interface in the console language.

The localized text of the control.

The RTTI includes the class name. Two data words precede the vptr at +0x08. The one instance is TheLocale.

The RTTI records the class. The object is 0xc bytes. The control never loads a table, so only Terminate() is recovered, and the word at +0x08 has no known use.

Constructor & Destructor Documentation

◆ Locale() [1/2]

Locale::Locale ( )

Construct a locale with no text loaded.

Ghidra address:
NTSC-U/C: 0x00299c80
Ghidra address:
PAL: 0x002a3880

◆ ~Locale() [1/2]

virtual Locale::~Locale ( )
virtual

Release the text through Terminate().

Ghidra address:
NTSC-U/C: 0x00299cd8
Ghidra address:
PAL: 0x002a38d8

◆ Locale() [2/2]

Locale::Locale ( )
inline

Create a locale with no table.

Ghidra address:
0x10013510

◆ ~Locale() [2/2]

virtual Locale::~Locale ( )
virtual

Release the table.

Ghidra address:
0x10013570

Member Function Documentation

◆ Init()

void Locale::Init ( const char * pszLanguage)

Build the text table of one language from the configuration.

Parameters
pszLanguageThe language key GetSystemLanguage() reports.
Ghidra address:
NTSC-U/C: 0x00299ac8
Ghidra address:
PAL: 0x002a36c8

◆ Terminate() [1/2]

void Locale::Terminate ( )

Release the text table, if one is loaded.

Ghidra address:
NTSC-U/C: 0x00299ca0
Ghidra address:
PAL: 0x002a38a0

◆ Localize()

const char * Locale::Localize ( const char * pszToken,
bool bFail )

Look up the text of a token in the language Init() loaded.

Parameters
pszTokenThe token.
bFailTreat a missing token as an error.
Returns
The text.
Ghidra address:
NTSC-U/C: 0x00299d30
Ghidra address:
PAL: 0x002a3930

◆ GetStrings()

DataArray * Locale::GetStrings ( ) const
inline
Returns
The text table Init() built, or null.

◆ GetFileCount()

int Locale::GetFileCount ( ) const
inline
Returns
The number of files the language of Init() lists.

◆ Terminate() [2/2]

void Locale::Terminate ( )

Release the table.

Ghidra address:
0x10013550

The documentation for this class was generated from the following files: