| 157 | } |
| 158 | |
| 159 | Dictionary 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 | |
| 173 | Vector<String> GodotMonoDecompWrapper::get_files_not_present_in_file_map() { |
| 174 | ERR_FAIL_COND_V_MSG(decompilerHandle == nullptr, Vector<String>(), "Decompiler handle is null"); |
no test coverage detected