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

Method get_decomp_versions

bytecode/bytecode_versions.cpp:282–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282Vector<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
300Ref<GDScriptDecomp> GDScriptDecompVersion::create_decomp() const {
301 if (is_custom()) {

Callers

nothing calls this directly

Calls 4

get_major_versionMethod · 0.80
push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected