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 

sce prefix on functions?

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



Joined: 07 Feb 2005
Posts: 25

PostPosted: Sat Apr 23, 2005 1:31 pm    Post subject: sce prefix on functions? Reply with quote

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 :)
Back to top
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Apr 23, 2005 7:18 pm    Post subject: Reply with quote

I think there is already lots of aliases, no ?
Code:
#define CdInit sceCdInit

_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
loser



Joined: 07 Feb 2005
Posts: 25

PostPosted: Sat Apr 23, 2005 9:16 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Apr 24, 2005 12:01 am    Post subject: Reply with quote

Nothing is expected to be done :) That's the whole spirit of ps2dev ^_^
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sun Apr 24, 2005 5:10 am    Post subject: Reply with quote

I think he's trying to say that if you're willing to put the work into it, you get to define the standard. :)
Back to top
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Apr 24, 2005 5:39 am    Post subject: Reply with quote

ooPo got it right! ^_^
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
loser



Joined: 07 Feb 2005
Posts: 25

PostPosted: Sun Apr 24, 2005 10:25 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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