MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / ProcessPDB

Function ProcessPDB

modules/core/core/src/core/build.module_manager.cpp:14–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 std::string& orig_pdb);
13
14static 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
36namespace skr

Callers 1

loadHotfixModuleMethod · 0.85

Calls 5

cr_pdb_replaceFunction · 0.85
copyFunction · 0.50
stringMethod · 0.45
c_strMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected