summaryrefslogtreecommitdiffstats
path: root/gui/resources.hpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-03-05 20:25:39 +0100
committerDees Troy <dees_troy@teamw.in>2015-03-11 13:54:08 +0100
commit474cacf22fbbcd4825bb7a4ae63d1dfa55992433 (patch)
tree44efb3ac558764f7faa95e509d6e4f19477ea505 /gui/resources.hpp
parentgui: allow specifying resource type in element name (diff)
downloadandroid_bootable_recovery-474cacf22fbbcd4825bb7a4ae63d1dfa55992433.tar
android_bootable_recovery-474cacf22fbbcd4825bb7a4ae63d1dfa55992433.tar.gz
android_bootable_recovery-474cacf22fbbcd4825bb7a4ae63d1dfa55992433.tar.bz2
android_bootable_recovery-474cacf22fbbcd4825bb7a4ae63d1dfa55992433.tar.lz
android_bootable_recovery-474cacf22fbbcd4825bb7a4ae63d1dfa55992433.tar.xz
android_bootable_recovery-474cacf22fbbcd4825bb7a4ae63d1dfa55992433.tar.zst
android_bootable_recovery-474cacf22fbbcd4825bb7a4ae63d1dfa55992433.zip
Diffstat (limited to '')
-rw-r--r--gui/resources.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/resources.hpp b/gui/resources.hpp
index 83fc7a537..0ce968427 100644
--- a/gui/resources.hpp
+++ b/gui/resources.hpp
@@ -3,7 +3,11 @@
#ifndef _RESOURCE_HEADER
#define _RESOURCE_HEADER
-#include "../minzip/Zip.h"
+#include <string>
+#include <vector>
+#include <map>
+
+struct ZipArchive;
extern "C" {
#include "../minuitwrp/minui.h"
@@ -94,11 +98,13 @@ public:
FontResource* FindFont(const std::string& name) const;
ImageResource* FindImage(const std::string& name) const;
AnimationResource* FindAnimation(const std::string& name) const;
+ std::string FindString(const std::string& name) const;
private:
std::vector<FontResource*> mFonts;
std::vector<ImageResource*> mImages;
std::vector<AnimationResource*> mAnimations;
+ std::map<std::string, std::string> mStrings;
};
#endif // _RESOURCE_HEADER