| 1104 | } |
| 1105 | |
| 1106 | String GDScript::get_script_path() const { |
| 1107 | if (!path_valid && !get_path().is_empty()) { |
| 1108 | return get_path(); |
| 1109 | } |
| 1110 | return path; |
| 1111 | } |
| 1112 | |
| 1113 | Error GDScript::load_source_code(const String &p_path) { |
| 1114 | if (p_path.is_empty() || p_path.begins_with("gdscript://") || ResourceLoader::get_resource_type(p_path.get_slice("::", 0)) == "PackedScene") { |
no test coverage detected