Skip to content

Commit

Permalink
fix: fix nodejs and python compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jul 24, 2024
1 parent f94d87e commit 2c6eef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lse/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ PluginManager::PluginManager() : ll::mod::ModManager(PluginManagerName) {}
ll::Expected<> PluginManager::load(ll::mod::Manifest manifest) {
auto& logger = getSelfPluginInstance().getLogger();
#ifdef LEGACY_SCRIPT_ENGINE_BACKEND_PYTHON
std::filesystem::path dirPath = ll::plugin::getPluginsRoot() / manifest.name; // Plugin path
std::filesystem::path dirPath = ll::mod::getModsRoot() / manifest.name; // Plugin path
std::string entryPath =
PythonHelper::findEntryScript(ll::string_utils::u8str2str(dirPath.u8string())); // Plugin entry
// if (entryPath.empty()) return false;
Expand Down Expand Up @@ -99,7 +99,7 @@ ll::Expected<> PluginManager::load(ll::mod::Manifest manifest) {
}
#endif
#ifdef LEGACY_SCRIPT_ENGINE_BACKEND_NODEJS
std::filesystem::path dirPath = ll::plugin::getPluginsRoot() / manifest.name; // Plugin path
std::filesystem::path dirPath = ll::mod::getModsRoot() / manifest.name; // Plugin path
// std::string entryPath = NodeJsHelper::findEntryScript(dirPath.string()); // Plugin entry
// if (entryPath.empty()) return false;
// std::string pluginName = NodeJsHelper::getPluginPackageName(dirPath.string()); // Plugin name
Expand Down
6 changes: 3 additions & 3 deletions src/lse/PluginMigration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ auto migratePlugin(const PluginManager& pluginManager, const std::filesystem::pa
ll::string_utils::u8str2str(pluginDir.u8string()),
30000
);
ll::plugin::Manifest manifest{
ll::mod::Manifest manifest{
.entry = NodeJsHelper::findEntryScript(ll::string_utils::u8str2str(path.u8string())),
.name = ll::string_utils::u8str2str(pluginFileBaseName.u8string()),
.type = pluginType,
.dependencies =
std::unordered_set<ll::plugin::Dependency>{
ll::plugin::Dependency{
std::unordered_set<ll::mod::Dependency>{
ll::mod::Dependency{
.name = self.getManifest().name,
}, },
};
Expand Down

0 comments on commit 2c6eef9

Please sign in to comment.