fix: change code to suit for new YYCC library

This commit is contained in:
2024-08-15 16:57:12 +08:00
parent 1dba1e0674
commit 5c18e2ccbc
4 changed files with 14 additions and 19 deletions

View File

@@ -122,8 +122,8 @@ namespace VSW::Materializer::Utilities {
return;
}
// Then get its file name part
auto module_path = YYCC::FsPathPatch::FromUTF8Path(u8_module_path.c_str());
auto u8_module_name = YYCC::FsPathPatch::ToUTF8Path(module_path.filename());
auto module_path = YYCC::StdPatch::ToStdPath(u8_module_path);
auto u8_module_name = YYCC::StdPatch::ToUTF8Path(module_path.filename());
// Get the base address of current module
// HMODULE is the base address of loaded module