mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed discrepancy between YAML generator output and parser's expected input.
This commit is contained in:
@@ -588,10 +588,7 @@ namespace YAML {
|
||||
else
|
||||
out << Key << "type" << Value << "error";
|
||||
|
||||
if (rhs.Content().size() == 1)
|
||||
out << Key << "content" << Value << rhs.Content().front();
|
||||
else
|
||||
out << Key << "content" << Value << rhs.Content();
|
||||
out << Key << "content" << Value << rhs.Content();
|
||||
|
||||
if (!rhs.Condition().empty())
|
||||
out << Key << "condition" << Value << rhs.Condition();
|
||||
|
||||
+1
-1
@@ -298,7 +298,7 @@ try {
|
||||
<< YAML::Key << "plugins" << YAML::Value << plugins
|
||||
<< YAML::EndMap;
|
||||
|
||||
boss::ofstream out("foo.txt");
|
||||
boss::ofstream out(_game.MasterlistPath());
|
||||
out << yout.c_str();
|
||||
out.close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user