resonance 1.0.1
Loading...
Searching...
No Matches
metstrings.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/metstringid.h"
4#include "os/hxstr.h"
7
8#ifdef VIDEO_STANDARD_PAL
18extern ScriptTemplateMap g_metStrings;
19
33void LoadMetStrings();
34
42HxStr GetMetString(int nId);
43#endif
44
55inline HxStr MetText([[maybe_unused]] MetStringId nId, [[maybe_unused]] const char *pszText) {
56#ifdef VIDEO_STANDARD_PAL
57 return GetMetString(nId);
58#else
59 return HxStr(pszText);
60#endif
61}
62
74inline HxStr MetConfigText([[maybe_unused]] MetStringId nId,
75 [[maybe_unused]] int nConfigCode,
76 [[maybe_unused]] const char *pszKey) {
77#ifdef VIDEO_STANDARD_PAL
78 return GetMetString(nId);
79#else
80 return QueryConfigString(nConfigCode, pszKey);
81#endif
82}
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Registry of script call templates by integer identifier.
Definition scripttemplatemap.h:17
HxStr QueryConfigString(int nEventCode,...)
Read one configuration value as a string through the embedded interpreter.
MetStringId
Identifiers of the front-end texts in the European release's gamestrings_*.txt files.
Definition metstringid.h:12
HxStr MetText(MetStringId nId, const char *pszText)
A text the North American release writes into the executable.
Definition metstrings.h:55
HxStr MetConfigText(MetStringId nId, int nConfigCode, const char *pszKey)
A text the North American release reads through a configuration query.
Definition metstrings.h:74