1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix built-in script path of GDScript

This commit is contained in:
Wei Guo
2022-10-25 03:23:14 +08:00
parent c51a42778d
commit d0edd36f80
2 changed files with 6 additions and 0 deletions

View File

@@ -222,6 +222,7 @@ public:
virtual Error reload(bool p_keep_state = false) override;
virtual void set_path(const String &p_path, bool p_take_over = false) override;
void set_script_path(const String &p_path) { path = p_path; } //because subclasses need a path too...
Error load_source_code(const String &p_path);
Error load_byte_code(const String &p_path);