summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2015-01-20 20:21:04 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-01-22 22:21:27 +0100
commit3454ade92db48236057814f0ade5fa45bd57cd62 (patch)
tree8cf3de0c390157420ad0fe9a33b17237132ba7cb /gui/pages.cpp
parentHide some non critical error messages (diff)
downloadandroid_bootable_recovery-3454ade92db48236057814f0ade5fa45bd57cd62.tar
android_bootable_recovery-3454ade92db48236057814f0ade5fa45bd57cd62.tar.gz
android_bootable_recovery-3454ade92db48236057814f0ade5fa45bd57cd62.tar.bz2
android_bootable_recovery-3454ade92db48236057814f0ade5fa45bd57cd62.tar.lz
android_bootable_recovery-3454ade92db48236057814f0ade5fa45bd57cd62.tar.xz
android_bootable_recovery-3454ade92db48236057814f0ade5fa45bd57cd62.tar.zst
android_bootable_recovery-3454ade92db48236057814f0ade5fa45bd57cd62.zip
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r--gui/pages.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 94c351be2..8fef7b4c8 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -644,11 +644,11 @@ int PageSet::CheckInclude(ZipArchive* package, xml_document<> *parentDoc)
if (!attr)
break;
- LOGINFO("PageSet::CheckInclude loading filename: '%s'\n", filename.c_str());
if (!package) {
// We can try to load the XML directly...
- filename = "/res/";
+ filename = TWRES;
filename += attr->value();
+ LOGINFO("PageSet::CheckInclude loading filename: '%s'\n", filename.c_str());
struct stat st;
if(stat(filename.c_str(),&st) != 0) {
LOGERR("Unable to locate '%s'\n", filename.c_str());
@@ -668,6 +668,7 @@ int PageSet::CheckInclude(ZipArchive* package, xml_document<> *parentDoc)
close(fd);
} else {
filename += attr->value();
+ LOGINFO("PageSet::CheckInclude loading filename: '%s'\n", filename.c_str());
const ZipEntry* ui_xml = mzFindZipEntry(package, filename.c_str());
if (ui_xml == NULL)
{
@@ -1094,7 +1095,7 @@ int PageManager::ReloadPackage(std::string name, std::string package)
if (LoadPackage(name, package, "main") != 0)
{
- LOGERR("Failed to load package.\n");
+ LOGERR("Failed to load package '%s'.\n", package.c_str());
mPageSets.insert(std::pair<std::string, PageSet*>(name, set));
return -1;
}