| 1619 | } |
| 1620 | |
| 1621 | Vector<uint8_t> GDScriptDecomp::compile_code_string(const String &p_code) { |
| 1622 | error_message = ""; |
| 1623 | |
| 1624 | Vector<uint8_t> buf = GDScriptTokenizerCompat::parse_code_string(p_code, this, error_message); |
| 1625 | GDSDECOMP_FAIL_COND_V_MSG(buf.size() == 0, Vector<uint8_t>(), "Error parsing code"); |
| 1626 | if (check_compile_errors(buf)) { |
| 1627 | return Vector<uint8_t>(); |
| 1628 | } |
| 1629 | return buf; |
| 1630 | } |
| 1631 | |
| 1632 | Vector<String> GDScriptDecomp::get_bytecode_versions() { |
| 1633 | auto vers = GDScriptDecompVersion::get_decomp_versions(); |