aboutsummaryrefslogtreecommitdiff
path: root/src/plugin
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-10-11 22:04:05 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-10-11 22:04:05 +0800
commit627d814f487ac38d4f9b9b71da9bef46f33b3dad (patch)
tree8fe9ffba654b40ede31575874793b735df0fdf2e /src/plugin
parentf54345e4fc889471513cba99151a5e6a2dcef2d8 (diff)
downloadbullet-lab-remix-627d814f487ac38d4f9b9b71da9bef46f33b3dad.tar.xz
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.
Diffstat (limited to 'src/plugin')
-rw-r--r--src/plugin/pluginmgr_dl.cpp7
1 files changed, 4 insertions, 3 deletions
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 <dlfcn.h>
#include <dirent.h>
+#include <cstring>
#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);