Skip to content

Commit

Permalink
Merge pull request #231 from KennyOliver/issue-230
Browse files Browse the repository at this point in the history
Issue 230: Fix — Remove unnecessary check for `example_plugin.so`
  • Loading branch information
KennyOliver authored Jan 19, 2025
2 parents b66169b + 5188bd9 commit e9b57fa
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,21 +400,6 @@ int main(int argc, char **argv) {

return EXIT_SUCCESS;
} else if (strcmp(dot, ".flv") == 0) { // .flv script
snprintf(resolved_plugin_path, sizeof(resolved_plugin_path),
"%s/example_plugin.so", script_dir);
debug_print_basic("Resolved plugin path: %s\n", resolved_plugin_path);

void *plugin_handle = dlopen(resolved_plugin_path, RTLD_LAZY);
if (!plugin_handle) {
fprintf(stderr, "Error: dlopen error: %s\n", dlerror());
fprintf(stderr, "Plugin file could not be found: %s\n",
resolved_plugin_path);
exit(EXIT_FAILURE);
}

debug_print_basic("Plugin loaded successfully: %s\n",
resolved_plugin_path);

// Read .flv script
char *source = read_file(absolute_path);
if (!source) {
Expand Down

0 comments on commit e9b57fa

Please sign in to comment.