diff --git a/godot.nimble b/godot.nimble index fb8648f..0f2f049 100644 --- a/godot.nimble +++ b/godot.nimble @@ -4,4 +4,4 @@ description = "Godot Engine bindings" license = "MIT" srcDir = "godot" -requires "nim >= 0.17.0", "compiler >= 0.17.0" \ No newline at end of file +requires "nim >= 0.17.3", "compiler >= 0.17.3" \ No newline at end of file diff --git a/godot/godotapigen.nim b/godot/godotapigen.nim index a8c9804..526a1f8 100644 --- a/godot/godotapigen.nim +++ b/godot/godotapigen.nim @@ -794,7 +794,7 @@ proc genTypeFile(types: Table[string, GodotType], targetDir: string) = ) godotApiTypesTree.add(regNode) - renderModule(godotApiTypesTree, targetDir / "godottypes.nim") + writeFile(targetDir / "godottypes.nim", renderTree(godotApiTypesTree)) proc genSingletonWithDerived(tree: PNode, typ: GodotType, types: Table[string, GodotType]) = @@ -909,7 +909,7 @@ proc genApi*(targetDir: string, apiJsonFile: string) = makeMethod(types, tree, methodBindRegsitry, typ, meth, withImplementation = true) - renderModule(tree, targetDir / moduleName & ".nim") + writeFile(targetDir / moduleName & ".nim", renderTree(tree)) megaImport.add("import \"" & moduleName & "\"\n")