From 0c89c034ffe5fdf79e57c8bdbe9ca07eaf79b382 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 7 Jan 2016 09:28:43 -0500 Subject: xml --- src/common.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/common.cpp') diff --git a/src/common.cpp b/src/common.cpp index dbcef0b..8defd61 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -3,6 +3,13 @@ #include #include +#ifndef __WIN32__ +#include +#include +#include +#include +#endif // __WIN32__ + #ifndef __WIN32__ unsigned int millis(void){ @@ -57,3 +64,16 @@ void safeSetColorA(int r,int g,int b,int a){ if(a<0)a=0; glColor4ub(r,g,b,a); } + +int getdir(const char *dir, std::vector &files){ + DIR *dp; + struct dirent *dirp; + if(!(dp = opendir(dir))){ + std::cout <<"Error ("<d_name)); + closedir(dp); + return 0; +} -- cgit v1.2.3