Search found 825 matches

by Torch
Wed Dec 23, 2009 5:55 am
Forum: PSP Development
Topic: access user mode memory from kernel mode
Replies: 1
Views: 1530

I have no idea, but are you allocating the memory first and then finally loading the htmlviewer? If not maybe it has some problem with fragmentation :S

Try creating a heap at the beginning and allocating from that instead of raw allocation from the partition repeatedly.
by Torch
Mon Dec 21, 2009 11:57 pm
Forum: PSP Development
Topic: How does the Game Category's Context Browser sort hombrews?
Replies: 4
Views: 2215

If there isn't any additional code to sort it, then its according to the order of FAT entries.
by Torch
Mon Dec 21, 2009 11:37 pm
Forum: PSP Development
Topic: How does the Game Category's Context Browser sort hombrews?
Replies: 4
Views: 2215

It was changed to sort by date in one of the later versions. Unless you actually mean in the Content browser mode, in which case I haven't noticed.
by Torch
Sun Dec 20, 2009 1:43 pm
Forum: PSP Development
Topic: Is there a XML parser like expat in PSP?
Replies: 5
Views: 2651

There's an XML library already somewhere in the ps2dev SVN.
by Torch
Sun Dec 20, 2009 1:38 pm
Forum: PSP Development
Topic: Alpha blending to draw buffer?
Replies: 16
Views: 22844

For software, you need to check the display mode and calculate accordingly.

Use the getdisplaymode or whatever first to read the pixelformat. See the DrawImage() function.

http://code.google.com/p/lockdownpack/s ... ame/main.c
by Torch
Thu Dec 17, 2009 2:57 pm
Forum: PSP Development
Topic: current url in the embedded browser
Replies: 4
Views: 2532

You'll probably have to reverse the htmlviewer modules and hook something. If the files are all local you might be able to get away with hooking the sceIoOpen syscall. As for the web server, it should be possible if the PSP supports loopback. Just start the server along side the htmlviewer and hopef...
by Torch
Mon Dec 14, 2009 5:52 pm
Forum: PSP Development
Topic: How to detect memory leaks ?
Replies: 9
Views: 4009

Oh, cool thats exactly what mmgr is. I has no idea. Figured it was some kind of runtime debugging tool (which I normally couldn't be bothered to setup).
by Torch
Mon Dec 14, 2009 1:47 pm
Forum: PSP Development
Topic: How to detect memory leaks ?
Replies: 9
Views: 4009

Is there anything like a compile time garbage collection warning system?
by Torch
Tue Dec 08, 2009 5:35 pm
Forum: PSP Development
Topic: Hooking net modules
Replies: 7
Views: 4802

Because they don't use syscalls at all. They are user mode modules. You have to patch the functions in the net modules memory space to jump into your own code. Depending on the function, it might be possible to hook it from kernel mode code. Look at Coldbird's sample. If not, you need a user mode ho...
by Torch
Fri Dec 04, 2009 10:52 pm
Forum: PSP Development
Topic: Weird screen behavior
Replies: 38
Views: 17654

Well, looking at the code, it seems you're working from something meant to be a plug-in prx, not an executable prx. There's no "module_start" in an executable, and you certainly need the crt and start files that you exclude in the makefile. You need to start by converting this into a NORM...
by Torch
Thu Dec 03, 2009 6:49 pm
Forum: PSP Development
Topic: [SOLVED]how can I get PBP image offset and length
Replies: 4
Views: 2449

u32 header[10]; SceUID fd = sceIoOpen(eboot, PS_O_RDONLY, 0); if (fd >= 0) { if (sceIoRead(fd, header, sizeof(header)) == sizeof(header)) { sceIoLseek(fd, header...
by Torch
Sun Nov 29, 2009 5:58 pm
Forum: PSP Development
Topic: How to modify date'n'time area in XMB?
Replies: 5
Views: 2554

IIRC changing the day/date string while the VSH is running does not update it on screen. The VSH only redraws the time every second.
by Torch
Sat Nov 28, 2009 10:55 pm
Forum: PSP Development
Topic: Problem with bus clock setting on slim 3.71
Replies: 18
Views: 7900

ExitDelete useless threads, don't sleep them.
by Torch
Sun Nov 22, 2009 4:03 am
Forum: PSP Development
Topic: Putting my hw to sleep
Replies: 16
Views: 7689

sceKernelDelayThread(...) in the loop.

Use the power callbacks from psppower.h
by Torch
Sun Nov 22, 2009 2:28 am
Forum: PSP Development
Topic: Putting my hw to sleep
Replies: 16
Views: 7689

Usually caused by not sleeping enough in a loop.

You need to re-open any file handles after resuming from suspend.
by Torch
Sun Nov 22, 2009 12:28 am
Forum: PSP Development
Topic: Connecting Adhoc to the pc from psp
Replies: 20
Views: 7423

Put an end to it. No one who is capable of figuring this out is going to make an effort any more. I'm guessing the encryption key is in the IDStorage similar to the UMD sector key's decryption key.
by Torch
Sat Nov 14, 2009 10:59 pm
Forum: PSP Development
Topic: Reproducing brokencode's hack
Replies: 9
Views: 5062

Actually it is not the case that the decryption process has been changed, we can still decrypt the IPL. I think even using the older PSPs (like decrypting PSP 3000 IPL in Phat PSP). Only issue here is IPL block signatures. You've misunderstood. The decryption algorithm will remain the same, meaning...
by Torch
Wed Nov 11, 2009 12:11 am
Forum: PSP Development
Topic: hooking sceNetInetRecvfrom from vsh
Replies: 3
Views: 2175

bbtgp32465 wrote:i got it hooked with out any errors, the only problem is with sctrlHENFindFunction now.
Isn't it only a kernel function? Doesn't have a syscall export IIRC. Make one :)
Though you'll have problems hooking it from user mode after disabling memory protection, depending on what the function is doing.
by Torch
Mon Nov 09, 2009 8:02 pm
Forum: PSP Development
Topic: Reproducing brokencode's hack
Replies: 9
Views: 5062

I'm no cryptologist but I simply don't understand what is being done here. All we have to work with is two hashes and the input used to calculate them. How can you partially crack a hash? How can you even test whether what you have done is right or not since nothing in between is known; just the inp...
by Torch
Tue Nov 03, 2009 2:11 pm
Forum: PSP Development
Topic: How to check the availability of a directory
Replies: 4
Views: 2571

sceIoDopen
by Torch
Tue Nov 03, 2009 2:07 pm
Forum: PSP Development
Topic: How To Change Button Function
Replies: 2
Views: 1876

Look at RemaPSP source. The apihook functions can be replaced with sctrlHENFindFunction and sctrlHENPatchSyscall.
by Torch
Sun Nov 01, 2009 2:25 pm
Forum: PSP Development
Topic: sceGuCopyImage problem
Replies: 18
Views: 23208

The compiler doesn't clear uninitialized variables... ever. It's not up to the compiler. Uninitialized variables merely go into the BSS. It's up to the start code linked to the head of the program to clear the BSS segment. Look in crt0 or crt1 files for that code. I've seen some that rely on the me...
by Torch
Fri Oct 30, 2009 2:50 am
Forum: PSP Development
Topic: pspgl & pspDebugScreenPrintf()
Replies: 5
Views: 3006

But how I can use smaller font? Text, which is too long for one line, overlap on the one line instead of printing on next lines. How can I resolve this issue? You'll need to recompile it after creating a new "font" image with the size you require and editing the font width & height in...
by Torch
Fri Oct 30, 2009 1:50 am
Forum: PSP Development
Topic: pspgl & pspDebugScreenPrintf()
Replies: 5
Views: 3006

Debug blits to the active framebuffer. If the buffers have been swapped by something else (or display mode changed etc.), you need to reinit debug screen so it blits with the current display settings.
by Torch
Wed Oct 28, 2009 2:44 am
Forum: PSP Development
Topic: How to compile PSPSDK in windows.
Replies: 13
Views: 5177

Just delete the whole Cygwin installation and start from scratch. Or force reinstall of everything. Remember to select the whole of devel and wget.

Manually set the Cygwin bin path in the Windows environment variables and set the PSPSDK path in the Cygwin bat file.
by Torch
Mon Oct 26, 2009 4:49 am
Forum: PSP Development
Topic: sceKernelExitVSHVSH()?
Replies: 10
Views: 3965

I don't believe any args are required to be passed. I use sceKernelExitVSHVSH to reboot the 5.03 HEN and I just pass NULL. I mean the information passed back to VSH when you exit after launching an EBOOT. When you replace vshmain and launch the real one later if you don't pass the vshargs then it f...
by Torch
Sun Oct 25, 2009 4:14 pm
Forum: PSP Development
Topic: sceKernelExitVSHVSH()?
Replies: 10
Views: 3965

Davee wrote:IIRC sceKernelExitVSHVSH is kernel mode only.
Do you have information about the syntax of vshargs?
by Torch
Sun Oct 25, 2009 5:11 am
Forum: PSP Development
Topic: sceKernelExitVSHVSH()?
Replies: 10
Views: 3965

The vshargs for Sony logo is just 0 I think. The args give information to the VSH such as error messages to display and position of music player etc.
by Torch
Sun Oct 25, 2009 3:33 am
Forum: PSP Development
Topic: Help for create a prx
Replies: 6
Views: 2364

Maybe Ahman can help you with loading your modules into the upper 32MiB of the Slim so you don't eat into any unallocated free space in the lower 32MiB, like he's done in IRShell when multitasking. Getting the Sony XMB modules to load this way might be too difficult. If you code the interface and fu...
by Torch
Sun Oct 25, 2009 3:30 am
Forum: PSP Development
Topic: Would anyone be able to replicate the PSP+/Resistance stuff?
Replies: 3
Views: 2400

The PS3 acts as the host. The PSP side USB communication is completely done by the game (unless Sony has a standardized device class for this for future games to use). In either case you need to implement a device class on the PSP (and have another device act as host which also connects to the DualS...