coastline 0.0.4
Loading...
Searching...
No Matches
strings.h
Go to the documentation of this file.
1#pragma once
2
7
8#include <stddef.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15#define STRING_RESOURCE_COUNT 302
16
24
30extern char *g_pStringTableBuffer;
31
37extern size_t g_dwStringTableUsedBytes;
38
44extern size_t g_dwStringTableBufferSize;
45
53#if TGR_PLATFORM == TGR_PLATFORM_WIN || TGR_PLATFORM == TGR_PLATFORM_SDL
55#endif
56
65char *GetStringResource(unsigned nResourceId);
66
73void FreeStringTable(void);
74#ifdef __cplusplus
75}
76#endif
size_t g_dwStringTableUsedBytes
The bytes of g_pStringTableBuffer the loaded strings use.
void FreeStringTable(void)
Free the buffer of the strings.
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.
char * g_apszStringResourceTable[STRING_RESOURCE_COUNT+1]
The strings of the language resource library by identifier.
size_t g_dwStringTableBufferSize
The size of g_pStringTableBuffer, the size of the library file.
char * g_pStringTableBuffer
The buffer the strings are loaded into, allocated once.
#define STRING_RESOURCE_COUNT
The number of strings of the language resource library, numbered from 1.
Definition strings.h:15