Search found 25 matches

by JumpR
Thu Nov 06, 2008 4:42 am
Forum: PSP Development
Topic: 'Ejection' of Memory Stick
Replies: 3
Views: 1723

'Ejection' of Memory Stick

EDIT: Problem solved. Hey, I've been trying to get the game menu to recache for a while, and I've got it to work at random intervals. Below is the code I use to simulate an ejection and insertion of the memory stick. SceUID cbid = -1; // Hook function (it's called from vshmain so syscall wi...
by JumpR
Fri Mar 14, 2008 12:29 am
Forum: PSP Development
Topic: Problem with sceLflashFatfmtStartFatfmt
Replies: 13
Views: 3275

Try to unassign before loading the modules. Not working :( Do I need a little trick because I'm trying to format from the DDC memstick? Like disabling flashemu? @JumpR, create a kernel prx where you can load the function from (mode 0x1006) and then use usermode in your main application. Why... As I...
by JumpR
Thu Mar 13, 2008 4:13 pm
Forum: PSP Development
Topic: Problem with sceLflashFatfmtStartFatfmt
Replies: 13
Views: 3275

You never fill "argv[0]" before calling sceLflashFatfmtStartFatfmt. (And if you answer is again just "Oh, but it's there in the real code".. then well, if you can't be bothered to post the proper code, then we can't be bothered to look at it). Wait, that might be the problem :) ...
by JumpR
Thu Mar 13, 2008 9:17 am
Forum: PSP Development
Topic: Problem with sceLflashFatfmtStartFatfmt
Replies: 13
Views: 3275

jimparis wrote:Huh? That code can't even compile.
You reference buf1 before you declare it; you're missing a semicolon when you do declare it; etc.
I'm sorry, it was caused by the fact that this is only a snippet of the whole code, fixed ;) In the original code it was correct, so that wasn't the reason.
by JumpR
Thu Mar 13, 2008 9:03 am
Forum: PSP Development
Topic: Problem with sceLflashFatfmtStartFatfmt
Replies: 13
Views: 3275

Pirata Nervo wrote:That might be the problem. Change it to 0.
That doesn't make sense.. How can I format the flashes, write files and other stuff in user mode? DDC is also kernel mode...
by JumpR
Thu Mar 13, 2008 8:35 am
Forum: PSP Development
Topic: Load Prx?
Replies: 4
Views: 1558

Just use this:

Code: Select all

pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL);
by JumpR
Thu Mar 13, 2008 8:33 am
Forum: PSP Development
Topic: Problem with sceLflashFatfmtStartFatfmt
Replies: 13
Views: 3275

Pirata Nervo wrote:Are you running on usermode?
Nope.

Code: Select all

PSP_MODULE_INFO("Test", 0x1000, 1, 0);
by JumpR
Thu Mar 13, 2008 8:01 am
Forum: PSP Development
Topic: Load Prx?
Replies: 4
Views: 1558

Could you post a more complete code, like the loadStartModule function?
by JumpR
Thu Mar 13, 2008 7:58 am
Forum: PSP Development
Topic: Get sceKernelExitGame memory addres
Replies: 2
Views: 1173

Use the following function from the 3.80 M33 SDK: sctrlHENFindFunction("sceLoadExec", "LoadExecForUser", 0x05572A5F); Get that information here: http://silverspring.lan.st/3.5x/index.html Of course, you can also hardcode the offset, although it's better to keep it...
by JumpR
Thu Mar 13, 2008 7:47 am
Forum: PSP Development
Topic: Problem with sceLflashFatfmtStartFatfmt
Replies: 13
Views: 3275

Pirata Nervo wrote:Does it shutdown itself? (the psp)
Yes. Well, it hangs at "Formatting flash0..." for a few seconds, then it shuts itself down.
by JumpR
Thu Mar 13, 2008 7:37 am
Forum: PSP Development
Topic: Problem with sceLflashFatfmtStartFatfmt
Replies: 13
Views: 3275

Problem with sceLflashFatfmtStartFatfmt

Hey, First of all, note that I'm trying to run this application from a DDCv4 stick using the ELF menu. Also, I already tried to search, and I can't seem to make up from that why it isn't working. I need to format flash0, flash1 and flash2. I did my best to write it as clean as possible with loops an...
by JumpR
Mon Mar 10, 2008 3:36 am
Forum: PSP Development
Topic: Decryption using PSARdump
Replies: 1
Views: 1170

Well.. all, I guess. Try the RSPsardumper...
by JumpR
Wed Mar 05, 2008 5:41 am
Forum: PSP Development
Topic: How to load an homebrew app from another?
Replies: 6
Views: 2511

Untested, but should work. int ExecEboot(char *file){ struct SceKernelLoadExecVSHParam param; memset(&param, 0, sizeof(param)); param.key = "game"; param.size = sizeof(param); param.args = strlen(target&a...
by JumpR
Tue Mar 04, 2008 5:49 pm
Forum: PSP Development
Topic: How to load an homebrew app from another?
Replies: 6
Views: 2511

Untested, but should work. int ExecEboot(char *target){ struct SceKernelLoadExecVSHParam param; memset(&param, 0, sizeof(param)); param.key = "game"; param.size = sizeof(param); param.args = strlen(target&...
by JumpR
Mon Feb 11, 2008 4:12 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

It compiles now, time to start messing with it.
Thanks! =D
by JumpR
Sun Feb 10, 2008 10:51 pm
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

Well if you need to get the syscall numbers allocated (and it doesn't do it for you at load time) you could always make a small user mode prx which you load the unload ;) Thanks, but I currently can't even get the M33 SDK working, it keeps showing me errors like these: In file included from dump.c&...
by JumpR
Sun Feb 10, 2008 6:39 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

Well, this just isn't going to work, I downloaded the M33 SDK and copied it to the pspdev directory (it's found by the compiler if I include it), and coded this in my attempt to dump the sysconf: #include <pspkernel.h> #include <pspctrl.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #...
by JumpR
Sun Feb 10, 2008 4:29 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

Thanks for all the help, much appreciated. I'll Google a bit for more information about syscalls and I should be fine.
Thanks!
by JumpR
Sun Feb 10, 2008 3:55 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

Well, better use that function I told you. It will advise your module whenever a module is about to start. You just have to compare mod->modname name with the one you are searching, and doing stuff in that case. But be careful of using it correctly, calling the "previous" function if it e...
by JumpR
Sun Feb 10, 2008 3:45 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

If you are in a kernel mode prx, you cannot hook a user function like that, not without endind with a crash. I didn't notice your previous post till now, I downloaded the M33 SDK and found the sctrlHENSetStartModuleHandler, interesting function which I'll sure experiment with. However, if I can't h...
by JumpR
Sun Feb 10, 2008 3:20 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

It's a vsh plugin so it only loads when it's used like all other vsh plugin modules (for picture, music, movie, etc.). Ie. when you click the icon. I know, but I need to figure out when it's loaded, so that I can start locating and patching it once that happens, that's why I'm writing all the voodo...
by JumpR
Sun Feb 10, 2008 2:59 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

It's a vsh plugin so it only loads when it's used like all other vsh plugin modules (for picture, music, movie, etc.). Ie. when you click the icon. I know, but I need to figure out when it's loaded, so that I can start locating and patching it once that happens, that's why I'm writing all the voodo...
by JumpR
Sun Feb 10, 2008 2:27 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

jimparis wrote:I think you mean "locate" not "relocate".
Indeed. Sorry, didn't think of the difference at first, English is not my first language, locating is a bit more logic to do then relocating, I'll edit first post.
I feel quite emberassed.
by JumpR
Sun Feb 10, 2008 2:23 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

TyRaNiD wrote:Few questions...

1) Why?
2) Why?
3) See 1 and 2
I want to apply some memory patches in sysconf. Oh, oops, I confused relocate with locate, I modified the post, my apologies.
by JumpR
Sun Feb 10, 2008 1:18 am
Forum: PSP Development
Topic: Locating Sysconf
Replies: 30
Views: 9465

Locating Sysconf

Hey, I've been trying this for awhile, searched all over the web, and I think the best place to ask it is here. I'm trying to locate the sysconf_plugin_module, my first attempt was the following (Pseudo-C): sceKernelDelayThread&#40;2000000&#41;; sceKernelDcacheWritebackAll&#40;&#41;;...