| View previous topic :: View next topic |
| Author |
Message |
loser
Joined: 07 Feb 2005 Posts: 25
|
Posted: Sat Apr 23, 2005 1:31 pm Post subject: sce prefix on functions? |
|
|
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 |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Sat Apr 23, 2005 7:18 pm Post subject: |
|
|
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 |
|
 |
loser
Joined: 07 Feb 2005 Posts: 25
|
Posted: Sat Apr 23, 2005 9:16 pm Post subject: |
|
|
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 |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Sun Apr 24, 2005 12:01 am Post subject: |
|
|
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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sun Apr 24, 2005 5:10 am Post subject: |
|
|
| 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 |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Sun Apr 24, 2005 5:39 am Post subject: |
|
|
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 |
|
 |
loser
Joined: 07 Feb 2005 Posts: 25
|
Posted: Sun Apr 24, 2005 10:25 am Post subject: |
|
|
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 |
|
 |
|