Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
locale.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19/* Copyright (C) Electronic Arts Canada Inc. 1998-1999. All rights reserved. */
20
21/* ABSTRACT
22locale.h - REAL fonts
23@ */
24
25#ifndef __LOCALE_H
26#define __LOCALE_H 1
27
28//#ifdef __cplusplus
29//extern "C" {
30//#endif
31
32
33/****************************************************************************/
34/* LOCALE API */
35/****************************************************************************/
36const char * LOCALE_getstr( const void *localefile, int stringid );
37/* NOTE: this single function replaces the previous LOCALE API */
38
39/****************************************************************************/
40/* OBSOLETE LOCALE API */
41/****************************************************************************/
42
43/* This API is being retired in favor of the much simplier single LOCALE_getstr function. */
44
45#define LOCALE_BANK_COUNT 8
46
47/* initialization/restore */
48int LOCALE_init( void ); /* call before calling any other LOCALE functions */
49void LOCALE_restore( void ); /* free all memory/resources allocated by LOCALE */
50
51/* attributes */
52void LOCALE_setbank( int bankindex ); /* bankindex >= 0 && bankindex < LOCALE_BANK_COUNT */
53int LOCALE_getbank( void ); /* returns current bank id */
54int LOCALE_getbanklanguageid( void ); /* returns language id of the current bank */
55int LOCALE_getbankstringcount( void ); /* returns the string string count in the current bank */
56
57/* operations */
58int LOCALE_loadtable( const char *pathname, int languageid ); /* load table into the current bank */
59void LOCALE_freetable( void ); /* free table in the current bank */
60const char * LOCALE_getstring( int stringid ); /* use values in the .h file created by locomoto */
61
62/* maintain backwards compatibility */
63#define LOCALE_purgetable LOCALE_freetable
64
65
66//#ifdef __cplusplus
67//}
68//#endif
69
70#endif /* __LOCALE_H */
71/* END ABSTRACT */
72
int LOCALE_loadtable(const char *pathname, int languageid)
Definition locale.cpp:564
int LOCALE_getbankstringcount(void)
Definition locale.cpp:384
void LOCALE_freetable(void)
Definition locale.cpp:638
int LOCALE_getbank(void)
Definition locale.cpp:302
void LOCALE_restore(void)
Definition locale.cpp:197
void LOCALE_setbank(int bankindex)
Definition locale.cpp:262
int LOCALE_init(void)
Definition locale.cpp:146
const char * LOCALE_getstring(int stringid)
Definition locale.cpp:732
const char * LOCALE_getstr(const void *localefile, int stringid)
Definition locale.cpp:824
int LOCALE_getbanklanguageid(void)
Definition locale.cpp:343