hrydgard/ppsspp — pull request #6 by artart78 (2012-11-04 18:06:19+00:00)
Title: Better wrapper system, warning fixes, small bugfixes, module loading implementation

I changed the wrapper system in order to only use &Wrap<>. I hope it works on all the compilers.
I also fixed some warnings, some small bugs (-> sceCtrlReadBuffer wrongly checking if sceCtrlInit() has been called, a segmentation fault on an invalid thread id etc.).
I also added support for module loading (.prx loading in the ISO), but that's untested because none of my games used that properly (either modules are encrypted, it uses sceModuleLoadModuleByID(), or modules are already implemented by the HLE..).