From 3454ade92db48236057814f0ade5fa45bd57cd62 Mon Sep 17 00:00:00 2001 From: Dees Troy Date: Tue, 20 Jan 2015 19:21:04 +0000 Subject: 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 --- gui/resources.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/resources.cpp') diff --git a/gui/resources.cpp b/gui/resources.cpp index 0d32ceee0..d769c17eb 100644 --- a/gui/resources.cpp +++ b/gui/resources.cpp @@ -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); } } -- cgit v1.2.3