coastline 0.0.4
Loading...
Searching...
No Matches
strings.h File Reference

The strings of the language resource library, loaded into a table by identifier. More...

#include <stddef.h>
Include dependency graph for strings.h:

Go to the source code of this file.

Macros

#define STRING_RESOURCE_COUNT   302
 The number of strings of the language resource library, numbered from 1.

Functions

void LoadStringTableFromDll (void)
 Load the string table of the language resource library.
char * GetStringResource (unsigned nResourceId)
 Look up a string of the loaded string table.
void FreeStringTable (void)
 Free the buffer of the strings.

Variables

char * g_apszStringResourceTable [STRING_RESOURCE_COUNT+1]
 The strings of the language resource library by identifier.
char * g_pStringTableBuffer
 The buffer the strings are loaded into, allocated once.
size_t g_dwStringTableUsedBytes
 The bytes of g_pStringTableBuffer the loaded strings use.
size_t g_dwStringTableBufferSize
 The size of g_pStringTableBuffer, the size of the library file.

Detailed Description

The strings of the language resource library, loaded into a table by identifier.

Macro Definition Documentation

◆ STRING_RESOURCE_COUNT

#define STRING_RESOURCE_COUNT   302

The number of strings of the language resource library, numbered from 1.

Function Documentation

◆ LoadStringTableFromDll()

void LoadStringTableFromDll ( void )

Load the string table of the language resource library.

The table is cleared each time, and the strings are loaded only the first time.

Ghidra address:
BRD3D: 0x10073f60
Ghidra address:
BRGlide: 0x1006d1a0

◆ GetStringResource()

char * GetStringResource ( unsigned nResourceId)

Look up a string of the loaded string table.

Parameters
nResourceIdIdentifier of the string resource.
Returns
The string, managed by the table, or NULL for an identifier out of range.
Ghidra address:
BRD3D: 0x10074030
Ghidra address:
BRGlide: 0x1006d280

◆ FreeStringTable()

void FreeStringTable ( void )

Free the buffer of the strings.

Ghidra address:
BRD3D: 0x10074050
Ghidra address:
BRGlide: 0x1006d2a0

Variable Documentation

◆ g_apszStringResourceTable

char* g_apszStringResourceTable[STRING_RESOURCE_COUNT+1]
extern

The strings of the language resource library by identifier.

The first entry is unused.

Ghidra address:
BRD3D: 0x11829370
Ghidra address:
BRGlide: 0x1186c488

◆ g_pStringTableBuffer

char* g_pStringTableBuffer
extern

The buffer the strings are loaded into, allocated once.

Ghidra address:
BRD3D: 0x1182982c

◆ g_dwStringTableUsedBytes

size_t g_dwStringTableUsedBytes
extern

The bytes of g_pStringTableBuffer the loaded strings use.

Ghidra address:
BRD3D: 0x11829830

◆ g_dwStringTableBufferSize

size_t g_dwStringTableBufferSize
extern

The size of g_pStringTableBuffer, the size of the library file.

Ghidra address:
BRD3D: 0x11829834