""
All times are GMT +2. The time now is 07:19 PM.  

Go Back   PSX/PS2/PS3 Scene Newz > PlayStation2 Forums > PS2 Homebrew/Dev & Emu Scene

PS2 Homebrew/Dev & Emu Scene Topics relating to homebrew PS2 development and emulation.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2008, 01:45 PM
SlimPS2_Dude SlimPS2_Dude is offline
Registered User
 
Join Date: Jul 2008
Posts: 22

Basic PS2 Coding..


Alright, well, I got my PS2SDK up and running properly, and I am trying to do some coding..

I am having a little bit of trouble with booting an .elf file via code..

I have made several attempts at making it work, but I can't seem to figure out what sort of input it expects.

I am currently trying to use loader.c, and pkoLoadElf, which I thought would work like this..

pkoLoadElf("Mass:/Folder/Elf.elf")
pkoLoadElf("Mass0:/Folder/Elf.elf")
etc,..

But thats not working.. I tried variations of that input, but rather than guessing at what sort of input it requires, I figured I would just ask.

Any help would be appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-17-2008, 02:23 PM
dlanor dlanor is offline
Contributor
 
Join Date: Sep 2004
Posts: 4,733
Quote:
Originally Posted by SlimPS2_Dude View Post
I am currently trying to use loader.c, and pkoLoadElf, which I thought would work like this..

pkoLoadElf("Mass:/Folder/Elf.elf")
pkoLoadElf("Mass0:/Folder/Elf.elf")
etc,..

But thats not working.. I tried variations of that input, but rather than guessing at what sort of input it requires, I figured I would just ask.
One obvious error in the above is that you write "Mass" with an uppercase 'M', even though the correct device name is "mass" with a lowercase 'm'. A less obvious error is that the device driver might not like the ":/" sequence (we always filter those into just ":" for the uLE access to mass).

Try something like this instead:
pkoLoadElf("mass:Folder/Elf.elf")

Best regards: dlanor
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-17-2008, 03:56 PM
SlimPS2_Dude SlimPS2_Dude is offline
Registered User
 
Join Date: Jul 2008
Posts: 22
Quote:
Originally Posted by dlanor View Post
One obvious error in the above is that you write "Mass" with an uppercase 'M', even though the correct device name is "mass" with a lowercase 'm'. A less obvious error is that the device driver might not like the ":/" sequence (we always filter those into just ":" for the uLE access to mass).

Try something like this instead:
pkoLoadElf("mass:Folder/Elf.elf")

Best regards: dlanor
Thank you, its still not working, but I am sure its not because of syntax now.

I might bump this back up later on if I run into any more simple coding problems, rather than making more threads..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT +2. The time now is 07:19 PM.