Skip to content

Commit

Permalink
Fixed a crash when generating the C# binding for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Sep 13, 2023
1 parent f104c2b commit b7ac196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/generate_csharp_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ void GenerateCSharpBindingsPlugin::generate() {
const String out_path = output_directory.path_join(api_file_name);
const String out_log_path = output_directory.path_join("log.txt");

ERR_FAIL_COND(DirAccess::make_dir_recursive_absolute(output_directory) != Error::OK);
auto dir = DirAccess::open(output_directory);
ERR_FAIL_COND(dir->make_dir_recursive(output_directory) != Error::OK);

// Clear tmp files
PackedStringArray files = dir->get_files();
Expand Down

0 comments on commit b7ac196

Please sign in to comment.