| 119 | } |
| 120 | |
| 121 | void init_language(const String &p_base_path) { |
| 122 | // Setup project settings since it's needed by the languages to get the global scripts. |
| 123 | // This also sets up the base resource path. |
| 124 | Error err = ProjectSettings::get_singleton()->setup(p_base_path, String(), true); |
| 125 | if (err) { |
| 126 | print_line("Could not load project settings."); |
| 127 | // Keep going since some scripts still work without this. |
| 128 | } |
| 129 | |
| 130 | // Initialize the language for the test routine. |
| 131 | GDScriptLanguage::get_singleton()->init(); |
| 132 | init_autoloads(); |
| 133 | } |
| 134 | |
| 135 | void finish_language() { |
| 136 | GDScriptLanguage::get_singleton()->finish(); |
no test coverage detected