diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-01-22 23:07:11 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2016-01-22 23:08:07 +0100 |
commit | 4adc33ebff988504175b09165ba34f644fc795ee (patch) | |
tree | 7e2ae4a2c66db42ced5d5ea282f1f98bcb82f156 /gui/pages.cpp | |
parent | gui: language EN fixes (diff) | |
download | android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.gz android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.bz2 android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.lz android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.xz android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.zst android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.zip |
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r-- | gui/pages.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp index 932be6b32..ddf53a92c 100644 --- a/gui/pages.cpp +++ b/gui/pages.cpp @@ -687,6 +687,7 @@ int PageSet::LoadLanguage(char* languageFile, ZipArchive* package) xml_node<>* parent; xml_node<>* child; std::string resource_source; + int ret = 0; if (languageFile) { printf("parsing languageFile\n"); @@ -717,9 +718,10 @@ int PageSet::LoadLanguage(char* languageFile, ZipArchive* package) if (child) mResources->LoadResources(child, package, resource_source); else - return -1; + ret = -1; + DataManager::SetValue("tw_backup_name", gui_lookup("auto_generate", "(Auto Generate)")); lang.clear(); - return 0; + return ret; } int PageSet::Load(ZipArchive* package, char* xmlFile, char* languageFile, char* baseLanguageFile) |