MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / main

Function main

tools/dump_everything/dump_everything.cpp:1157–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1155}
1156
1157int main(int argc, char **argv)
1158{
1159 if (OpenApoc::config().parseOptions(argc, argv))
1160 {
1161 return EXIT_FAILURE;
1162 }
1163 Framework fw("OpenApoc", false);
1164
1165 fs::path dump_path = "dumped_data";
1166 fs::remove_all(dump_path);
1167
1168 for (auto &pck : pckFiles)
1169 dumpPck(dump_path, pck.prefix, pck.palette, pck.type);
1170 for (auto &pcx : pcxFiles)
1171 dumpPcx(dump_path, pcx);
1172 for (auto &raw : rawFiles)
1173 dumpRaw(dump_path, raw);
1174 for (auto &lof : loftempFiles)
1175 dumpLofTemps(dump_path, lof);
1176
1177 return EXIT_SUCCESS;
1178}

Callers

nothing calls this directly

Calls 5

dumpPckFunction · 0.85
dumpPcxFunction · 0.85
dumpRawFunction · 0.85
dumpLofTempsFunction · 0.85
parseOptionsMethod · 0.45

Tested by

no test coverage detected