MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / decompile_byte_code

Method decompile_byte_code

bytecode/bytecode_base.cpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111Error GDScriptDecomp::decompile_byte_code(const String &p_path) {
112 Vector<uint8_t> bytecode;
113
114 if (p_path.get_extension().to_lower() == "gde") {
115 return decompile_byte_code_encrypted(p_path, GDRESettings::get_singleton()->get_encryption_key());
116 }
117 bytecode = FileAccess::get_file_as_bytes(p_path);
118 return decompile_buffer(bytecode);
119}
120
121Error GDScriptDecomp::get_buffer_encrypted(const String &p_path, int engine_ver_major, Vector<uint8_t> p_key, Vector<uint8_t> &bytecode) {
122 Ref<FileAccess> fa = FileAccess::open(p_path, FileAccess::READ);

Callers 1

_decompile_processMethod · 0.80

Calls 1

get_encryption_keyMethod · 0.80

Tested by

no test coverage detected