From 627d814f487ac38d4f9b9b71da9bef46f33b3dad Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 11 Oct 2015 22:04:05 +0800 Subject: Implement the collision system and a simple effect. Fixed a problem that keeps the screen black on start up. Replace the build script in dtputil with makefile. Sync with the newest SMELT revision. --- src/plugin/pluginmgr_dl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugin') diff --git a/src/plugin/pluginmgr_dl.cpp b/src/plugin/pluginmgr_dl.cpp index f3ab816..337fa99 100644 --- a/src/plugin/pluginmgr_dl.cpp +++ b/src/plugin/pluginmgr_dl.cpp @@ -1,17 +1,18 @@ #include #include +#include #include "pluginmgr.hpp" pluginManager::pluginManager() { - pluginFolder="./plugins"; + strcpy(pluginFolder,"./plugins"); } void pluginManager::scanPlugin() { DIR *dir; struct dirent *file; - if(dir=opendir(pluginFolder)) + if((dir=opendir(pluginFolder))) { - while(file=readdir(dir)) + while((file=readdir(dir))) //puts(file->d_name); if(strcmp(file->d_name+strlen(file->d_name)-3,".so")==0) strcpy(fn[fcnt++],file->d_name); -- cgit v1.2.3