OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
win_localization.h
1
/*
2
===========================================================================
3
Copyright (C) 2025 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
// localization.h : Localization for different languages
24
// TODO
25
26
#pragma once
27
28
#include "q_shared.h"
29
#include "qcommon.h"
30
#include "../qcommon/localization.h"
31
32
#ifdef __cplusplus
33
# include "str.h"
34
# include "container.h"
35
36
typedef
struct
{
37
str
m_refName;
38
str
m_locName;
39
intptr_t m_r1_rep;
40
intptr_t m_r2_rep;
41
intptr_t m_r3_rep;
42
intptr_t m_l1_rep;
43
intptr_t m_l2_rep;
44
intptr_t m_l3_rep;
45
} loc_entry_t;
46
47
class
cLocalization
48
{
49
Container<loc_entry_t> m_entries;
50
Container<str> missing;
51
52
public
:
53
cLocalization();
54
55
const
char
*ConvertString(
const
char
*var);
56
57
private
:
58
void
LoadFile(
const
char
*name);
59
void
GenerateMissing(
const
char
*file_name);
60
};
61
#endif
str
Definition
str.h:77
code
sys
win_localization.h
Generated by
1.13.2