Skip to content

Commit

Permalink
Check that plugin dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed Feb 9, 2024
1 parent 8d40881 commit 515a762
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/devue_core/src/systems/dv_sys_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ void dv_sys_plugin::reload_plugins() {
// PRIVATE

void dv_sys_plugin::prepare_plugins() {
if (!std::filesystem::exists("./plugins/") || !std::filesystem::is_directory("./plugins/"))
return;

for (const auto& entry : std::filesystem::directory_iterator("./plugins/")) {
// Make sure it's a file
if (!std::filesystem::is_regular_file(entry))
Expand Down

0 comments on commit 515a762

Please sign in to comment.