| 280 | } |
| 281 | |
| 282 | Vector<GDScriptDecompVersion> GDScriptDecompVersion::get_decomp_versions(bool include_dev, int ver_major) { |
| 283 | Vector<GDScriptDecompVersion> versions; |
| 284 | String ver_major_str = itos(ver_major); |
| 285 | for (int i = 0; i < GDScriptDecompVersion::decomp_versions.size(); i++) { |
| 286 | if (GDScriptDecompVersion::decomp_versions[i].commit == 0xfffffff || GDScriptDecompVersion::decomp_versions[i].commit == 0x0000000) { |
| 287 | continue; |
| 288 | } |
| 289 | if (!include_dev && GDScriptDecompVersion::decomp_versions[i].is_dev) { |
| 290 | continue; |
| 291 | } |
| 292 | if (ver_major > 0 && GDScriptDecompVersion::decomp_versions[i].get_major_version() != ver_major) { |
| 293 | continue; |
| 294 | } |
| 295 | versions.push_back(GDScriptDecompVersion(GDScriptDecompVersion::decomp_versions[i])); |
| 296 | } |
| 297 | return versions; |
| 298 | } |
| 299 | |
| 300 | Ref<GDScriptDecomp> GDScriptDecompVersion::create_decomp() const { |
| 301 | if (is_custom()) { |
nothing calls this directly
no test coverage detected