| 12 | std::string& orig_pdb); |
| 13 | |
| 14 | static bool ProcessPDB(const skr::filesystem::path& dst) |
| 15 | { |
| 16 | auto basePath = dst.lexically_normal(); |
| 17 | skr::filesystem::path folder, fname, ext; |
| 18 | folder = basePath.parent_path(); |
| 19 | fname = basePath.stem(); |
| 20 | ext = basePath.extension(); |
| 21 | // replace ext with .pdb |
| 22 | auto pdbDst = folder / (fname.string() + ".pdb"); |
| 23 | std::string orig_pdb; |
| 24 | bool result = cr_pdb_replace(dst.string(), fname.string() + ".pdb", orig_pdb); |
| 25 | std::error_code ec; |
| 26 | skr::filesystem::copy(orig_pdb, pdbDst, skr::filesystem::copy_options::overwrite_existing, ec); |
| 27 | if (ec) |
| 28 | { |
| 29 | SKR_LOG_ERROR(u8"copy pdb file failed: %s", ec.message().c_str()); |
| 30 | result = false; |
| 31 | } |
| 32 | return result; |
| 33 | } |
| 34 | #endif |
| 35 | |
| 36 | namespace skr |
no test coverage detected