Prototypes for sceUtilityScreenshot* ??

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Prototypes for sceUtilityScreenshot* ??

Post by Torch »

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?
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

I'm working on it currently, including a sample.
Super Sheep
Posts: 31
Joined: Sun Mar 23, 2008 2:16 am
Contact:

Re: Prototypes for sceUtilityScreenshot* ??

Post by Super Sheep »

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...
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Re: Prototypes for sceUtilityScreenshot* ??

Post by Torch »

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: Select all

.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: Select all

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
Post Reply