Use /twres instead of /res for theme resources

AOSP and other ROM trees now do a rm -rf of the res folder during
the ramdisk creation process that removes the TWRP resources.
Using /twres instead of /res works around this issue making TWRP
more compatible with AOSP and other build trees.

Change-Id: I0d4c7e06ca381ac5aa0069b6f2b8c47f7dec49e7
This commit is contained in:
Dees Troy
2015-01-20 19:21:04 +00:00
committed by Ethan Yonker
parent d9ff3c5dd0
commit 3454ade92d
11 changed files with 49 additions and 38 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ FontResource::FontResource(xml_node<>* node, ZipArchive* pZip)
}
else
{
file = std::string("/res/fonts/") + file;
file = std::string(TWRES "fonts/") + file;
mFont = gr_ttf_loadFont(file.c_str(), size, dpi);
}
}