I'm trying to add some multiplayer to my game, so I need the wlan modules in my game. My problem is, my game runs in user mode only. When I set the kernel flag,
Code: Select all
PSP_MAIN_THREAD_ATTR(0);
Instead of
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
I tried to:
- load the modules in the main thread, create and start a user thread to run the game, but every time I tried it froze.
- create a kernel thread in the constructor, and load the libs from it. The libs won't load (Exception: bus error...)
Can someone give me a solution ? Maybe some tricks and things to avoid to have the game run in kernel mode ?
Or maybe what I tried to do is possible but I messed up, I really don't know how to load those libs and having my game run at the same time :(
Thanks in advance for any help.