| View previous topic :: View next topic |
| Author |
Message |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Oct 30, 2008 1:52 pm Post subject: Prototypes for sceUtilityScreenshot* ?? |
|
|
Hi does anyone have the prototypes for the official screenshot functions?
0251b134 sceUtilityScreenshotInitStart
86a03a27 sceUtilityScreenshotContStart
f9e0008c sceUtilityScreenshotShutdownStart
ab083ea9 sceUtilityScreenshotUpdate
d81957b7 sceUtilityScreenshotGetStatus
And is there a stub available or will I have to FindFunction and get the address to use them? |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Fri Oct 31, 2008 7:14 am Post subject: |
|
|
| I'm working on it currently, including a sample. |
|
| Back to top |
|
 |
Super Sheep
Joined: 23 Mar 2008 Posts: 31
|
Posted: Fri Oct 31, 2008 8:32 am Post subject: Re: Prototypes for sceUtilityScreenshot* ?? |
|
|
| Torch wrote: | | And is there a stub available or will I have to FindFunction and get the address to use them? |
Thats very lazy doing that. Just make a stub... |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Fri Oct 31, 2008 2:36 pm Post subject: Re: Prototypes for sceUtilityScreenshot* ?? |
|
|
| Super Sheep wrote: | | Torch wrote: | | And is there a stub available or will I have to FindFunction and get the address to use them? |
Thats very lazy doing that. Just make a stub... |
I'm having a problem with this stubs. For example I tried using this stub made by booster for this function:
| Code: | .set noreorder
#include "pspimport.s"
IMPORT_START "sceSyscon_driver",0x00010000
IMPORT_FUNC "sceSyscon_driver",0x5EE92F3C,sceSysconSetDebugHandlers |
Its named import.s and I've added to the makefile as import.o
I have only one LIBS in my app lpsppower_driver.
It just says cannot fixup imports and that I have to put the PSPSDK libs last. If I remove the lpsppower_driver and its functions it compiles. I can't change the order because there is only one lib!!
So I had to remove the stub and I used sctrlHENFindFunction to get the function address and assign it to my pointer prototype.
This is the makefile in question.
| Code: | TARGET = hold
OBJS = main.o import.o sysconhk.o exports.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
BUILD_PRX = 1
PRX_EXPORTS = exports.exp
USE_KERNEL_LIBC=1
USE_KERNEL_LIBS=1
PSP_FW_VERSION = 390
LIBDIR =
LIBS = -lpsppower_driver
LDFLAGS = -nostdlib -nodefaultlibs
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build_prx.mak
|
|
|
| Back to top |
|
 |
|