MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / init_language

Function init_language

modules/gdscript/tests/gdscript_test_runner.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void 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
135void finish_language() {
136 GDScriptLanguage::get_singleton()->finish();

Callers 4

testFunction · 0.85
test_completion.hFile · 0.85
GDScriptTestRunnerMethod · 0.85
initializeFunction · 0.85

Calls 5

print_lineFunction · 0.85
init_autoloadsFunction · 0.85
StringClass · 0.50
setupMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected