| 1546 | } |
| 1547 | |
| 1548 | bool gdre::is_zip_file(const String &p_path) { |
| 1549 | Ref<FileAccess> fa = FileAccess::open(p_path, FileAccess::READ); |
| 1550 | if (fa.is_null()) { |
| 1551 | return false; |
| 1552 | } |
| 1553 | uint8_t header[4]; |
| 1554 | fa->get_buffer(header, 4); |
| 1555 | return header[0] == 0x50 && header[1] == 0x4b && header[2] == 0x03 && header[3] == 0x04; |
| 1556 | } |
| 1557 | |
| 1558 | String gdre::get_safe_dir_name(const String &p_dir_name, bool p_allow_paths) { |
| 1559 | return OS::get_singleton()->get_safe_dir_name(p_dir_name, p_allow_paths); |
nothing calls this directly
no test coverage detected