(&self)
| 117 | } else if self.0.starts_with("dlc://") { |
| 118 | ResPathKind::Dlc |
| 119 | } else { |
| 120 | ResPathKind::User |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | pub fn as_str(&self) -> &str { |
| 125 | &self.0 |
| 126 | } |
| 127 | |
| 128 | pub fn to_res_path_buf(&self) -> ResPathBuf { |
| 129 | ResPathBuf(Cow::Owned(self.0.to_owned())) |
| 130 | } |
| 131 |