diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Makefile | 2 | ||||
-rw-r--r-- | core/main.cpp | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/core/Makefile b/core/Makefile index 398e0dc..1613c29 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1,6 +1,6 @@ CFLAGS=-g -mwindows -mwin32 -D DEBUG -I../api/ -CXXFLAGS=${CFLAGS} LDFLAGS=-static-libgcc -Wl,--subsystem=windows +CXXFLAGS=${CFLAGS} CPPFLAGS = CC=i686-pc-mingw32-gcc CXX=i686-pc-mingw32-g++ diff --git a/core/main.cpp b/core/main.cpp index aa6a7fc..b5ff8e4 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -18,7 +18,6 @@ INT_PTR CallService(const char *name, WPARAM w, LPARAM l); HANDLE CreateServiceFunction(const char *name, SERVICE pService); DWORD WINAPI OnModulesLoadedThread( LPVOID lpParam ); int ServiceExists(const char *name); -SERVICE GetPluginInfoList(WPARAM, LPARAM); SERVICE Test(WPARAM, LPARAM); PLUGINLINK link = {&CreateServiceFunction, &CallService, &ServiceExists}; @@ -31,14 +30,12 @@ int main(int argc, char *argv[]) { (*p)->getFuncs().load(&link); } - CreateServiceFunction("GetPluginInfoList", (SERVICE)GetPluginInfoList); CreateServiceFunction("Test", (SERVICE)Test); for(list<plugin*>::iterator p = plugins.begin(); p != plugins.end(); p++) { if((*p)->getFuncs().loaded) { CreateThread(NULL, 0, OnModulesLoadedThread, (LPVOID)(*p)->getFuncs().loaded, 0, 0); -// (*p)->getFuncs().loaded(); } } CallService("GetPluginInfoList", 0, 0); @@ -160,13 +157,6 @@ int ServiceExists(const char *name) return 1; return 0; } -SERVICE GetPluginInfoList(WPARAM, LPARAM) -{ - list<PLUGININFO> *pluginInfoList = new list<PLUGININFO>; - for(list<plugin*>::iterator p = plugins.begin(); p != plugins.end(); p++) - pluginInfoList->push_back((*p)->getPluginInfo()); - return (SERVICE)pluginInfoList; //is it right ? -} SERVICE Test(WPARAM, LPARAM) { |