From 101854af77d7a7afdb79a3b80b362f9b779c1105 Mon Sep 17 00:00:00 2001 From: "wagic.jeck" Date: Thu, 19 Nov 2009 09:27:11 +0000 Subject: [PATCH] Jeck - Small fix to r1305. This still leaves card text untranslated, but at least clears the translated text out of memory. The thing complicating a "100% functionality" fix for this is that all translation changes are destructive- they overwrite the original text. We want this behavior, as it prevents having two sets of strings in memory (the untranslated and translated sets) when card text currently takes hundreds of kb... however, to switch languages we'd want the original text available, which means reloading all the set files. That's not optimal either... As it is, the player must reset their PSP for translated card text. Again, not optimal. I'm submitting an issue on this topic. --- projects/mtg/src/OptionItem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/OptionItem.cpp b/projects/mtg/src/OptionItem.cpp index b3306cbe5..2338a90a3 100644 --- a/projects/mtg/src/OptionItem.cpp +++ b/projects/mtg/src/OptionItem.cpp @@ -305,6 +305,7 @@ void OptionLanguage::setData(){ options[id] = GameOption(actual_data[value]); Translator::EndInstance(); Translator::GetInstance()->init(); + Translator::GetInstance()->tempValues.clear(); } } void OptionLanguage::confirmChange(bool confirmed){ @@ -316,6 +317,7 @@ void OptionLanguage::confirmChange(bool confirmed){ options[id] = GameOption(actual_data[value]); Translator::EndInstance(); Translator::GetInstance()->init(); + Translator::GetInstance()->tempValues.clear(); } prior_value = value; }