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

Method get_major_version

bytecode/bytecode_versions.cpp:399–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399int GDScriptDecompVersion::get_major_version() const {
400 if (min_version.is_empty()) {
401 return 0;
402 }
403 switch (min_version[0]) {
404 case '0':
405 case '1':
406 case '2':
407 case '3':
408 case '4':
409 case '5':
410 case '6':
411 case '7':
412 case '8':
413 case '9':
414 return min_version[0] - '0';
415 default:
416 return 0;
417 }
418}

Callers 3

_serialize_fileFunction · 0.80
get_decomp_versionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected