forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Prototypes for sceUtilityScreenshot* ??

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Oct 30, 2008 1:52 pm    Post subject: Prototypes for sceUtilityScreenshot* ?? Reply with quote

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
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Fri Oct 31, 2008 7:14 am    Post subject: Reply with quote

I'm working on it currently, including a sample.
Back to top
View user's profile Send private message
Super Sheep



Joined: 23 Mar 2008
Posts: 31

PostPosted: Fri Oct 31, 2008 8:32 am    Post subject: Re: Prototypes for sceUtilityScreenshot* ?? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Oct 31, 2008 2:36 pm    Post subject: Re: Prototypes for sceUtilityScreenshot* ?? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group