I need to load the compressed modules to save RAM.
Someone got a idea how I can do this? Every method I tried only loads the decrypted unpacked modules.
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Err - how is loading compressed/encrypted modules going to save ram? To be usable, a module must be uncompressed/decrypted. The only thing a compressed module saves is space on the memstick/flash partition.
Unless you decompress the currently required parts manually and relocate the addresses manually. Even then it wouldn't be registered with module manager. It would just be code in memory that you need to manually jump into.
Which module is it that is so HUGE it doesn't fit in memory?? The majority of modules are small. You'd be much better off trimming memory from your app than trying to partially load modules. I would bet the code needed to do that would more than exceed the space saved in partially loading a module.
Uhm... I hardly doubt my module can save the memory needed to load that biggie without cutting a game of its thread-memory...
My Module <-- 20kb
My Usermodule Wrapper <-- 60kb (I think i could save like... half of that if i linked differently...)
The module I need...
pspnet_inet.prx <-- 210kb
See what I mean?
And to be more uh clear about the problem at hand, loading works fine...
I can load the module I need into memory with about every game I boot, but then I'm lacking memory to load and start the usermodule wrapper...
Or in a not so severe scenario... the usermodule wrapper loads but then the game crashes because it lacks memory for its own stuff.
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
You shouldn't be making user mode modules anyway. The only way you'll get them to work is on the Slim if you call the sctrlHenSetMemory or whatever in VSH mode so that when it reboots in game mode the full memory will be mapped to user memory.
Why don't you get the system working first without any memory constraints? Then look at optimizing it. For that use the Slim extra memory. And like I said, to unlock the memory when the USE_LARGE_MEMORY flag is not set, you must manually call the sctrlHENSetMemory and restart kernel.
I would be shocked to death if you could run pieces of pspnet_inet.prx without loading the whole thing. You're going to have to find some other way of making more memory available.