summaryrefslogtreecommitdiff
path: root/drivers/pe_bliss/message_table.h
diff options
context:
space:
mode:
authormasoud bh <masoud.bh@chmail.ir>2015-11-09 02:23:58 +0330
committermasoud bh <masoud.bh@chmail.ir>2015-11-09 02:23:58 +0330
commit24f3f43457ac6bdeed95c1ed0a882387a509078a (patch)
treeb8249a4f8c1674538b80b0a5d22d4b6810f7cf1e /drivers/pe_bliss/message_table.h
parent3fcfdfec0ac5175f55527b3ec95d14d48bf29dd2 (diff)
Add icon to exe file in windows export
add version_info and icon sections in "export to windows platform". add version_info and icon to godot exe file (editor & template exe). fix an problem in image class. change all default icons to android export icon (a little more rounded). create an python script for convert file to cpp byte array for use in 'splash.h'.
Diffstat (limited to 'drivers/pe_bliss/message_table.h')
-rw-r--r--drivers/pe_bliss/message_table.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/pe_bliss/message_table.h b/drivers/pe_bliss/message_table.h
new file mode 100644
index 0000000000..d437f511b2
--- /dev/null
+++ b/drivers/pe_bliss/message_table.h
@@ -0,0 +1,35 @@
+#pragma once
+#include <string>
+#include <map>
+#include "stdint_defs.h"
+
+namespace pe_bliss
+{
+//Structure representing message table string
+class message_table_item
+{
+public:
+ //Default constructor
+ message_table_item();
+ //Constructors from ANSI and UNICODE strings
+ explicit message_table_item(const std::string& str);
+ explicit message_table_item(const std::wstring& str);
+
+ //Returns true if string is UNICODE
+ bool is_unicode() const;
+ //Returns ANSI string
+ const std::string& get_ansi_string() const;
+ //Returns UNICODE string
+ const std::wstring& get_unicode_string() const;
+
+public:
+ //Sets ANSI or UNICODE string
+ void set_string(const std::string& str);
+ void set_string(const std::wstring& str);
+
+private:
+ bool unicode_;
+ std::string ansi_str_;
+ std::wstring unicode_str_;
+};
+}