| 141 | } |
| 142 | |
| 143 | u8string GetFilePath(PathId pathid) const override |
| 144 | { |
| 145 | auto dirbase = GetDefaultBaseDirectory(pathid); |
| 146 | auto basePath = GetDirectoryPath(dirbase); |
| 147 | auto fileName = kFileNames[EnumValue(pathid)]; |
| 148 | |
| 149 | auto assetPath = Platform::GetAssetPath(); |
| 150 | if (!assetPath.empty()) |
| 151 | { |
| 152 | auto combinedAssetPath = Path::Combine(assetPath, basePath, fileName); |
| 153 | if (File::Exists(combinedAssetPath)) |
| 154 | { |
| 155 | return combinedAssetPath; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | return Path::Combine(basePath, fileName); |
| 160 | } |
| 161 | |
| 162 | u8string FindFile(DirBase base, DirId did, u8string_view fileName) const override |
| 163 | { |
no test coverage detected