Author: shadowmaster
Date: Wed Apr 4 04:17:09 2012
New Revision: 53769
URL: http://svn.gna.org/viewcvs/wesnoth?rev=53769&view=rev
Log:
addon/info: Write .type as a string id instead of a converted enum member in
write() and write_minimal() methods
Modified:
trunk/src/addon/info.cpp
Modified: trunk/src/addon/info.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/addon/info.cpp?rev=53769&r1=53768&r2=53769&view=diff
==============================================================================
--- trunk/src/addon/info.cpp (original)
+++ trunk/src/addon/info.cpp Wed Apr 4 04:17:09 2012
@@ -95,7 +95,7 @@
cfg["size"] = this->size;
cfg["downloads"] = this->downloads;
cfg["uploads"] = this->uploads;
- cfg["type"] = this->type;
+ cfg["type"] = get_addon_type_string(this->type);
foreach(const std::string& locale_id, this->locales) {
cfg.add_child("translation")["language"] = locale_id;
@@ -108,7 +108,7 @@
{
cfg["version"] = this->version.str();
cfg["uploads"] = this->uploads;
- cfg["type"] = this->type;
+ cfg["type"] = get_addon_type_string(this->type);
}
std::string addon_info::display_title() const
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits