소스 검색

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

Steve Thielemann 3 년 전
부모
커밋
87b62e811e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;