Fix built-in script path of GDScript

This commit is contained in:
Wei Guo committed 2022-10-25 03:41:18 +08:00
1 parent c51a42778d
commit d0edd36f80
2 files changed
+6

No files matched your search

+5
View File
@@ -1050,6 +1050,11 @@ Error GDScript::load_byte_code(const String &p_path) {
return ERR_COMPILATION_FAILED;
}
void GDScript::set_path(const String &p_path, bool p_take_over) {
Script::set_path(p_path, p_take_over);
this->path = p_path;
}
Error GDScript::load_source_code(const String &p_path) {
Vector<uint8_t> sourcef;
Error err;