summaryrefslogtreecommitdiffstats
path: root/src/Text.h
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2019-06-02 05:15:00 +0200
committerGitHub <noreply@github.com>2019-06-02 05:15:00 +0200
commit809c81ea9ce66b998e0ebaf17965843337c4fdd9 (patch)
treec1b34122ddd4be0461a5310c964e8218b9f5781e /src/Text.h
parentskeleton updated, windows specific stuff added (diff)
parentimplemented splashes; fixed zones (diff)
downloadre3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.gz
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.bz2
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.lz
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.xz
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.zst
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.zip
Diffstat (limited to 'src/Text.h')
-rw-r--r--src/Text.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Text.h b/src/Text.h
index c8d4e8b7..1aaef3b6 100644
--- a/src/Text.h
+++ b/src/Text.h
@@ -1,8 +1,10 @@
#pragma once
+void AsciiToUnicode(const char *cs, wchar *ws);
+
struct CKeyEntry
{
- wchar_t *value;
+ wchar *value;
char key[8];
};
// If this fails, CKeyArray::Load will have to be fixed
@@ -16,15 +18,15 @@ public:
void Load(uint32 length, uint8 *data, int *offset);
void Unload(void);
- void Update(wchar_t *chars);
+ void Update(wchar *chars);
CKeyEntry *BinarySearch(const char *key, CKeyEntry *entries, int16 low, int16 high);
- wchar_t *Search(const char *key);
+ wchar *Search(const char *key);
};
class CData
{
public:
- wchar_t *chars;
+ wchar *chars;
int numChars;
void Load(uint32 length, uint8 *data, int *offset);
@@ -41,7 +43,7 @@ public:
~CText(void);
void Load(void);
void Unload(void);
- wchar_t *Get(const char *key);
+ wchar *Get(const char *key);
};
extern CText &TheText;