| 1782 | } |
| 1783 | |
| 1784 | String ResourceFormatLoaderCompatBinary::get_resource_script_class(const String &p_path) const { |
| 1785 | Ref<FileAccess> f = FileAccess::open(p_path, FileAccess::READ); |
| 1786 | if (f.is_null()) { |
| 1787 | return ""; //could not read |
| 1788 | } |
| 1789 | |
| 1790 | ResourceLoaderCompatBinary loader; |
| 1791 | loader.local_path = p_path; // No need for local path, it only gets used in error messages. |
| 1792 | loader.res_path = loader.local_path; |
| 1793 | return loader.recognize_script_class(f); |
| 1794 | } |
| 1795 | |
| 1796 | ResourceUID::ID ResourceFormatLoaderCompatBinary::get_resource_uid(const String &p_path) const { |
| 1797 | String ext = p_path.get_extension().to_lower(); |
nothing calls this directly
no test coverage detected