Page 1 of 1

sce prefix on functions?

Posted: Sat Apr 23, 2005 1:31 pm
by loser
ive finally made the change from ps2lib to ps2sdk :)

i want to know, was it decided to definately keep the 'sce' prefix on functions that have it in the bios (as was mentioned in an iop file somewhere in ps2sdk).

if so what about on the ee side?

i ask because i would like to get a common interface to things such as cdvd/pad/memcard access on both the iop and ee. in doing so i would want to be able to call the functions on the ee or iop using the same function name and args.

if not keeping the sce prefix, would we then use a capital letter for the start of the function?

so which will it be?
sceCdInit()
cdInit()
CdInit()

just want to confirm all this before going ahead with anything, thx :)

Posted: Sat Apr 23, 2005 7:18 pm
by pixel
I think there is already lots of aliases, no ?

Code: Select all

#define CdInit sceCdInit

Posted: Sat Apr 23, 2005 9:16 pm
by loser
yes

but i want to confirm the way its expected to be done, especially cos im interested in having the same functions calls work on iop and ee. the same code should then be able to be used on either iop or ee.

Posted: Sun Apr 24, 2005 12:01 am
by pixel
Nothing is expected to be done :) That's the whole spirit of ps2dev ^_^

Posted: Sun Apr 24, 2005 5:10 am
by ooPo
I think he's trying to say that if you're willing to put the work into it, you get to define the standard. :)

Posted: Sun Apr 24, 2005 5:39 am
by pixel
ooPo got it right! ^_^

Posted: Sun Apr 24, 2005 10:25 am
by loser
heh ok, well ill go ahead with it for 1 module. most like the cdvd one for iop and ee and once its done see if ppl hate it so much they want me to take it out again :P

main thing i wanted to check was that now we could be calling funcs on ee as 'sceCdInit()' intsead of 'CdInit()', but i guess we can define aliases for those that want to drop the sce prefix in their sourcecode...