Gergely Gábor wrote: > I unfortnately don't know c++, but in c i know how would I do it. > weapoms wold be .so files, and I'd use dlopen to acess them. all in > subdirs, and their other data wold be there. At startup, I'd load them. > But once I've rad, that dynamic linking is problematic/tricky in c++. > Donow. This is only my idea. Perharps you do know a better solution, but > could you share it with me, as I don't undetrstand the code. > > I got through C++ and dlopen once. Everything goes fine if object instances are created/deleted into the C++ .so file, so plugin.so should contain new_Class() and destroy_Class() static functions. Not clean, but the only way to avoid crashes and other problems...
On another hand, creating plugins only for the sake of licencing would be a waste of time honestly. But having plugins for easy game improvement is cool indeed :-) and would bring new interrests. Regards -- Alexandre Sauvé _______________________________________________ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev