File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ static void printDependencyError( // NOLINT(misc-no-recursion)
112112static void deleteDependencyIssueItem (DependencyIssueItem* item) { delete item; }
113113
114114std::unique_ptr<DependencyIssueItem, void (*)(DependencyIssueItem*)>
115- pl::dependency_walker::pl_diagnostic_dependency (fs::path const & path) {
115+ pl::dependency_walker::pl_diagnostic_dependency_new (fs::path const & path) {
116116 auto libSearcher = LibrarySearcher::getInstance ();
117117 auto systemRoot = pl::utils::getSystemRoot ().u8string ();
118118 auto provider = std::make_unique<PortableExecutableProvider>(libSearcher, systemRoot, path);
@@ -122,8 +122,13 @@ pl::dependency_walker::pl_diagnostic_dependency(fs::path const& path) {
122122 };
123123}
124124
125+ std::unique_ptr<DependencyIssueItem> pl::dependency_walker::pl_diagnostic_dependency (std::filesystem::path const & path
126+ ) {
127+ return std::unique_ptr<DependencyIssueItem>(pl_diagnostic_dependency_new (path).release ());
128+ }
129+
125130std::string pl::dependency_walker::pl_diagnostic_dependency_string (fs::path const & path) {
126- auto result = pl_diagnostic_dependency (path);
131+ auto result = pl_diagnostic_dependency_new (path);
127132 std::stringstream stream;
128133 printDependencyError (*result, stream);
129134 return stream.str ();
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ struct DependencyIssueItem {
2525 * @return result The result of the diagnosis.
2626 */
2727PLAPI std::unique_ptr<DependencyIssueItem, void (*)(DependencyIssueItem*)>
28- pl_diagnostic_dependency (std::filesystem::path const & path);
28+ pl_diagnostic_dependency_new (std::filesystem::path const & path);
29+
30+ PLAPI std::unique_ptr<DependencyIssueItem> pl_diagnostic_dependency (std::filesystem::path const & path);
2931
3032/* *
3133 * @brief Diagnose the dependency of a library.
Original file line number Diff line number Diff line change 11{
22 "format_version" : 2 ,
33 "tooth" : " github.com/LiteLDev/PreLoader" ,
4- "version" : " 1.6.0 " ,
4+ "version" : " 1.6.1 " ,
55 "info" : {
66 "name" : " PreLoader" ,
77 "description" : " A library preloader for loading LeviLamina" ,
88 "author" : " LiteLDev" ,
99 "tags" : []
1010 },
11- "asset_url" : " https://github.com/LiteLDev/PreLoader/releases/download/v1.6.0 /preloader-windows-x64.zip" ,
11+ "asset_url" : " https://github.com/LiteLDev/PreLoader/releases/download/v1.6.1 /preloader-windows-x64.zip" ,
1212 "files" : {
1313 "place" : [
1414 {
2121 }
2222 ]
2323 }
24- }
24+ }
You can’t perform that action at this time.
0 commit comments