about summary refs log tree commit diff stats
path: root/010vm.cc
diff options
context:
space:
mode:
Diffstat (limited to '010vm.cc')
-rw-r--r--010vm.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/010vm.cc b/010vm.cc
index ff6f7f30..cf54d65a 100644
--- a/010vm.cc
+++ b/010vm.cc
@@ -291,6 +291,15 @@ void dump_memory() {
   }
 }
 
+void dump_recipe(const string& recipe_name) {
+  const recipe& r = Recipe[Recipe_ordinal[recipe_name]];
+  cout << "recipe " << r.name << " [\n";
+  for (long long int i = 0; i < SIZE(r.steps); ++i) {
+    cout << "  " << r.steps.at(i).to_string() << '\n';
+  }
+  cout << "]\n";
+}
+
 :(before "End Types")
 struct no_scientific {
   double x;