Explorar o código

Output filename is .yaml (since it is YAML).

Steve Thielemann %!s(int64=3) %!d(string=hai) anos
pai
achega
87b62e811e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      galaxy.cpp

+ 2 - 2
galaxy.cpp

@@ -308,7 +308,7 @@ void Galaxy::add_port(port p) {
 
 void Galaxy::load(void) {
   std::string filename =
-      str(boost::format("galaxy-%1%-%2%.json") % game % username);
+      str(boost::format("galaxy-%1%-%2%.yaml") % game % username);
   // reset ?
   meta = YAML::Node();
   config = YAML::Node();
@@ -376,7 +376,7 @@ void Galaxy::load(void) {
 
 void Galaxy::save(void) {
   std::string filename =
-      str(boost::format("galaxy-%1%-%2%.json") % game % username);
+      str(boost::format("galaxy-%1%-%2%.yaml") % game % username);
   YAML::Node data;
   // add some information to meta before saving.
   meta["save_to"] = filename;