Skip to content

Commit a7d0fc0

Browse files
committed
fix: fix abi break
1 parent 21d715b commit a7d0fc0

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

src/pl/dependency/DependencyWalker.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static void printDependencyError( // NOLINT(misc-no-recursion)
112112
static void deleteDependencyIssueItem(DependencyIssueItem* item) { delete item; }
113113

114114
std::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+
125130
std::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();

src/pl/dependency/DependencyWalker.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ struct DependencyIssueItem {
2525
* @return result The result of the diagnosis.
2626
*/
2727
PLAPI 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.

tooth.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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
{
@@ -21,4 +21,4 @@
2121
}
2222
]
2323
}
24-
}
24+
}

0 commit comments

Comments
 (0)