| 1139 | } |
| 1140 | |
| 1141 | static void dumpPcx(fs::path outDir, const UString &prefix) |
| 1142 | { |
| 1143 | auto outName = prefix + ".png"; |
| 1144 | auto pcxName = prefix + ".pcx"; |
| 1145 | auto path = outDir / outName.str(); |
| 1146 | fs::create_directories(path.parent_path()); |
| 1147 | LogWarning("Reading \"%s\"", pcxName); |
| 1148 | auto img = fw().data->loadImage(pcxName); |
| 1149 | if (!img) |
| 1150 | { |
| 1151 | LogError("Failed to load pcx \"%s\"", pcxName); |
| 1152 | return; |
| 1153 | } |
| 1154 | fw().data->writeImage(path.native(), img); |
| 1155 | } |
| 1156 | |
| 1157 | int main(int argc, char **argv) |
| 1158 | { |
no test coverage detected