Skip to content

Commit

Permalink
Merge pull request #1 from godotengine/master
Browse files Browse the repository at this point in the history
pull
  • Loading branch information
Rustmilian authored Sep 25, 2023
2 parents e3c497a + df0a822 commit 0fff5e1
Show file tree
Hide file tree
Showing 82 changed files with 2,822 additions and 1,365 deletions.
10 changes: 9 additions & 1 deletion core/extension/extension_api_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include "core/config/engine.h"
#include "core/core_constants.h"
#include "core/extension/gdextension_compat_hashes.h"
#include "core/io/file_access.h"
#include "core/io/json.h"
#include "core/templates/pair.h"
Expand Down Expand Up @@ -884,11 +885,18 @@ Dictionary GDExtensionAPIDump::generate_extension_api() {
d2["hash"] = method->get_hash();

Vector<uint32_t> compat_hashes = ClassDB::get_method_compatibility_hashes(class_name, method_name);
Array compatibility;
if (compat_hashes.size()) {
Array compatibility;
for (int i = 0; i < compat_hashes.size(); i++) {
compatibility.push_back(compat_hashes[i]);
}
}

#ifndef DISABLE_DEPRECATED
GDExtensionCompatHashes::get_legacy_hashes(class_name, method_name, compatibility);
#endif

if (compatibility.size() > 0) {
d2["hash_compatibility"] = compatibility;
}

Expand Down
Loading

0 comments on commit 0fff5e1

Please sign in to comment.