summaryrefslogtreecommitdiffstats
path: root/src/text/Text.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-08 14:34:21 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-08 14:34:21 +0100
commitd68ffc2da666600c8933ffe7d82e68781c94942f (patch)
treee24dd07ce4be60cb663338b14f9ba9ec61cc753f /src/text/Text.cpp
parentfix phones (diff)
downloadre3-d68ffc2da666600c8933ffe7d82e68781c94942f.tar
re3-d68ffc2da666600c8933ffe7d82e68781c94942f.tar.gz
re3-d68ffc2da666600c8933ffe7d82e68781c94942f.tar.bz2
re3-d68ffc2da666600c8933ffe7d82e68781c94942f.tar.lz
re3-d68ffc2da666600c8933ffe7d82e68781c94942f.tar.xz
re3-d68ffc2da666600c8933ffe7d82e68781c94942f.tar.zst
re3-d68ffc2da666600c8933ffe7d82e68781c94942f.zip
Diffstat (limited to 'src/text/Text.cpp')
-rw-r--r--src/text/Text.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/text/Text.cpp b/src/text/Text.cpp
index 5f7a07cc..a11acd26 100644
--- a/src/text/Text.cpp
+++ b/src/text/Text.cpp
@@ -13,7 +13,7 @@
static wchar WideErrorString[25];
-CText TheText;
+CText *CText::msInstance = nil;
CText::CText(void)
{
@@ -41,7 +41,7 @@ CText::Load(void)
CFileMgr::SetDir("TEXT");
switch(FrontEndMenuManager.m_PrefsLanguage){
case CMenuManager::LANGUAGE_AMERICAN:
- sprintf(filename, "AMERICAN.GXT");
+ sprintf(filename, "ENGLISH.GXT");
break;
case CMenuManager::LANGUAGE_FRENCH:
sprintf(filename, "FRENCH.GXT");
@@ -93,11 +93,13 @@ CText::Load(void)
keyArray.Update(data.chars);
CFileMgr::CloseFile(file);
CFileMgr::SetDir("");
+ bIsLoaded = true;
}
void
CText::Unload(void)
{
+ bIsLoaded = false;
CMessages::ClearAllMessagesDisplayedByGame();
keyArray.Unload();
data.Unload();
@@ -307,6 +309,11 @@ CText::LoadMissionText(char *MissionTableName)
bIsMissionTextLoaded = true;
}
+bool
+CText::IsLoaded()
+{
+ return bIsLoaded;
+}
void
CKeyArray::Load(size_t length, int file, size_t* offset)