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

Method get_script_info

utility/godot_mono_decomp_wrapper.cpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159Dictionary GodotMonoDecompWrapper::get_script_info(const String &file) {
160 ERR_FAIL_COND_V_MSG(decompilerHandle == nullptr, Dictionary(), "Decompiler handle is null");
161 CharString file_chrstr = file.utf8();
162 const char *file_c = file_chrstr.get_data();
163 const char *result = GodotMonoDecomp_GetScriptInfo(decompilerHandle, file_c);
164 if (result == nullptr) {
165 return Dictionary();
166 }
167 String result_str = String::utf8(result);
168 GodotMonoDecomp_FreeString((void *)result);
169 Dictionary dict = JSON::parse_string(result_str);
170 return dict;
171}
172
173Vector<String> GodotMonoDecompWrapper::get_files_not_present_in_file_map() {
174 ERR_FAIL_COND_V_MSG(decompilerHandle == nullptr, Vector<String>(), "Decompiler handle is null");

Callers 2

_reload_from_fileMethod · 0.80

Calls 1

get_dataMethod · 0.45

Tested by

no test coverage detected