Skip to content

Commit 2c6eef9

Browse files
committed
fix: fix nodejs and python compile
1 parent f94d87e commit 2c6eef9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lse/PluginManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ PluginManager::PluginManager() : ll::mod::ModManager(PluginManagerName) {}
6464
ll::Expected<> PluginManager::load(ll::mod::Manifest manifest) {
6565
auto& logger = getSelfPluginInstance().getLogger();
6666
#ifdef LEGACY_SCRIPT_ENGINE_BACKEND_PYTHON
67-
std::filesystem::path dirPath = ll::plugin::getPluginsRoot() / manifest.name; // Plugin path
67+
std::filesystem::path dirPath = ll::mod::getModsRoot() / manifest.name; // Plugin path
6868
std::string entryPath =
6969
PythonHelper::findEntryScript(ll::string_utils::u8str2str(dirPath.u8string())); // Plugin entry
7070
// if (entryPath.empty()) return false;
@@ -99,7 +99,7 @@ ll::Expected<> PluginManager::load(ll::mod::Manifest manifest) {
9999
}
100100
#endif
101101
#ifdef LEGACY_SCRIPT_ENGINE_BACKEND_NODEJS
102-
std::filesystem::path dirPath = ll::plugin::getPluginsRoot() / manifest.name; // Plugin path
102+
std::filesystem::path dirPath = ll::mod::getModsRoot() / manifest.name; // Plugin path
103103
// std::string entryPath = NodeJsHelper::findEntryScript(dirPath.string()); // Plugin entry
104104
// if (entryPath.empty()) return false;
105105
// std::string pluginName = NodeJsHelper::getPluginPackageName(dirPath.string()); // Plugin name

src/lse/PluginMigration.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ auto migratePlugin(const PluginManager& pluginManager, const std::filesystem::pa
9191
ll::string_utils::u8str2str(pluginDir.u8string()),
9292
30000
9393
);
94-
ll::plugin::Manifest manifest{
94+
ll::mod::Manifest manifest{
9595
.entry = NodeJsHelper::findEntryScript(ll::string_utils::u8str2str(path.u8string())),
9696
.name = ll::string_utils::u8str2str(pluginFileBaseName.u8string()),
9797
.type = pluginType,
9898
.dependencies =
99-
std::unordered_set<ll::plugin::Dependency>{
100-
ll::plugin::Dependency{
99+
std::unordered_set<ll::mod::Dependency>{
100+
ll::mod::Dependency{
101101
.name = self.getManifest().name,
102102
}, },
103103
};

0 commit comments

Comments
 (0)