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 

Load Iso's/Cso's

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Thu Feb 28, 2008 8:43 pm    Post subject: Load Iso's/Cso's Reply with quote

Shouldn't this function work?

Code:
int LoadExecIso(const char * file)
{
   int loadexec = 0;

   k1 = pspSdkSetK1(0);

   struct SceKernelLoadExecVSHParam param;
      
   memset(&param, 0, sizeof(param));

   param.size = sizeof(param);
   param.args = strlen(file)+1;
   param.argp = &file;
   param.key = "game";

   loadexec = sceKernelLoadExecVSHMs2(file, &param);

   pspSdkSetK1(k1);

   return loadexec;
}


or this one:
Code:
void LoadExecIso(const char * file)
{
   k1 = pspSdkSetK1(0);
   const u32 filelen = strlen(file)+1;
   struct SceKernelLoadExecVSHParam param;
   param.size = sizeof(param);
   param.args = filelen;
   param.argp = &file;
   param.key = "game";
   param.vshmain_args_size = 0;
   param.vshmain_args = 0;
   param.configfile = "/kd/pspbtcnf_game.txt";
   param.unk4 = 0;
   param.unk5 = 0x10000;

   sceKernelLoadExecVSHMs2(file, &param);

   pspSdkSetK1(k1);
}


Thank you.
Back to top
View user's profile Send private message
DeathCradle



Joined: 19 Jan 2008
Posts: 6

PostPosted: Fri Feb 29, 2008 9:31 pm    Post subject: Re: Load Iso's/Cso's Reply with quote

Pirata Nervo wrote:
Shouldn't this function work?


.............Have you even tested it yet??
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sat Mar 01, 2008 3:35 am    Post subject: Reply with quote

what do you think..?
OF COURSE and it does not work, that's why I said "shouldn't"

EDIT, this is my function now:
Code:

u8 vshmain_args[0x400];

]int LoadExecIso(const char * file)
{
   int loadexec = 0;

   k1 = pspSdkSetK1(0);

   memset(vshmain_args, 0, sizeof(vshmain_args));
   vshmain_args[0x40] = 1;
   vshmain_args[0x280] = 1;
   vshmain_args[0x284] = 3;
   vshmain_args[0x286] = 5;

   struct SceKernelLoadExecVSHParam param;
      
   memset(&param, 0, sizeof(param));

   param.size = sizeof(param);
   param.args = strlen(file)+1;
   param.argp = &file;
   param.key = "game";
   //param.configfile = "/kd/pspbtcnf_game.txt";
   param.vshmain_args_size = sizeof(vshmain_args);
   param.vshmain_args = vshmain_args;
   param.unk4 = 0;
   param.unk5 = 0;

   loadexec = sceKernelLoadExecVSHMs2(file, &param);

   pspSdkSetK1(k1);

   return loadexec;
}


I still get the error 8002014E
Back to top
View user's profile Send private message
DeathCradle



Joined: 19 Jan 2008
Posts: 6

PostPosted: Sat Mar 01, 2008 12:55 pm    Post subject: Reply with quote

ok ok calm down, i was making sure, lol

so what firmware version you got?

have you linked a iso prx?

in one of my apps i used,

Code:
pspSdkLoadStartModule()


Or

Code:
LoadExec


lol can't remember?

& i'm not sure if i linked a iso prx
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sat Mar 01, 2008 6:20 pm    Post subject: Reply with quote

lol, I'm calm :)
I am just tring to load an iso with my app, it runs umd's perfectly and homebrew too, but not isos :( I get this error: 8002014E

about linking libraries, I think this functions do not need previous linked libraries and the error does not mean "library is not linked". it means something like "wrong parameters", this error is not listed on kernel errors psp-programming's thread or at sdk's docs.
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sun Mar 02, 2008 6:02 am    Post subject: Reply with quote

Pirata Nervo wrote:
lol, I'm calm :)
I am just tring to load an iso with my app, it runs umd's perfectly and homebrew too, but not isos :( I get this error: 8002014E

about linking libraries, I think this functions do not need previous linked libraries and the error does not mean "library is not linked". it means something like "wrong parameters", this error is not listed on kernel errors psp-programming's thread or at sdk's docs.


If loading ISO's were that easy... We will see many.

[HINT]Ofcourse M33 SDK simplifies the job fawr ya.[/HINT]
_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sun Mar 02, 2008 6:19 am    Post subject: Reply with quote

dax's documentations say that sceKerneLoadExecMS2 "loads games (and homebrew :P) "
_________________

Upgrade your PSP


Last edited by Pirata Nervo on Sun Mar 02, 2008 8:09 am; edited 1 time in total
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Sun Mar 02, 2008 7:52 am    Post subject: Reply with quote

He means it loads game executables

You can't load ISOs directly -_- They are disc images.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sun Mar 02, 2008 8:03 am    Post subject: Reply with quote

lol, sorry about that ahahah,im so duh LOL, Ok, thank you for the information :D
So if I decompress the ISO image and load the eboot.bin with the sceKernelLoadExecVSHDisc will it work?
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Shapyi



Joined: 25 Apr 2005
Posts: 95

PostPosted: Sun Mar 02, 2008 5:54 pm    Post subject: Reply with quote

Pirata Nervo wrote:
lol, sorry about that ahahah,im so duh LOL, Ok, thank you for the information :D
So if I decompress the ISO image and load the eboot.bin with the sceKernelLoadExecVSHDisc will it work?


Discussing anything related to pirating games or running "backups" is not allowed on this forum. You are on your own with this one, I'm afraid you'll just need to figure it out yourself.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sun Mar 02, 2008 8:03 pm    Post subject: Reply with quote

ok, so thank you.
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Mon Mar 03, 2008 8:48 am    Post subject: Reply with quote

and with a name like Pirata, which in English means "stealing",
you're not going to encourage help from those who might have
wanted to bend the rules, because we aren't here to destroy the platform.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Tinnus



Joined: 29 Jul 2006
Posts: 67

PostPosted: Mon Mar 03, 2008 2:09 pm    Post subject: Reply with quote

Art wrote:
and with a name like Pirata, which in English means "stealing"

It means "Pirate".

Just FYI :)
_________________
Let's see what the PSP reserves... well, I'd say anything is better than Palm OS.
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Mon Mar 03, 2008 2:11 pm    Post subject: Reply with quote

Yes, it does :)

http://www.answers.com/topic/pirate

Which means stealing, not a person who wears an eye patch.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Mon Mar 03, 2008 6:54 pm    Post subject: Reply with quote

LOOL, it peans nerve pirate.
ahah, I know what means piracy Art.
My program runs ISO's too now. Thanks to cory for his help.
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
peb



Joined: 12 Mar 2007
Posts: 26

PostPosted: Thu Mar 20, 2008 10:57 am    Post subject: Reply with quote

And what cory said you to resolve your problem please? (I have the same error 8002014E)
_________________
Sorry for my English, I'm french.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Fri Mar 21, 2008 3:55 am    Post subject: Reply with quote

Cory only gave me a hint, not the code..
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Sun Mar 30, 2008 1:54 am    Post subject: Reply with quote

PIRATA NERVo == COPY/PASTER

He ask every code for his app on forums/sites/tutorials/source code

This code comes from : http://www.pspcrazy.com/index.php?page=Story&id=736

Load pbp => this site

Filbrowser => slasher

etc....
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun Mar 30, 2008 2:07 am    Post subject: Reply with quote

I guess he makes lame lua shells too.
Back to top
View user's profile Send private message AIM Address
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sun Mar 30, 2008 3:24 am    Post subject: Reply with quote

Question_dev wrote:
PIRATA NERVo == COPY/PASTER

He ask every code for his app on forums/sites/tutorials/source code

This code comes from : http://www.pspcrazy.com/index.php?page=Story&id=736

Load pbp => this site

Filbrowser => slasher

etc....


Please don't make nasty comments about people you don't even know it's not nice,

Pirata Nervo is kind and polite and only asks after trying to solve the problem himself,

He does not just copy and paste code into his app,

He obtained that code by doing some research and wanted help to understand why it never worked,
Back to top
View user's profile Send private message
jo3_sum



Joined: 30 Jan 2008
Posts: 17

PostPosted: Sun Mar 30, 2008 3:40 am    Post subject: Reply with quote

hibbyware wrote:
Question_dev wrote:
PIRATA NERVo == COPY/PASTER

He ask every code for his app on forums/sites/tutorials/source code

This code comes from : http://www.pspcrazy.com/index.php?page=Story&id=736

Load pbp => this site

Filbrowser => slasher

etc....


Please don't make nasty comments about people you don't even know it's not nice,

Pirata Nervo is kind and polite and only asks after trying to solve the problem himself,

He does not just copy and paste code into his app,

He obtained that code by doing some research and wanted help to understand why it never worked,


i agree with hibby. pirata nervo doesn't "cheat".
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sun Mar 30, 2008 4:07 am    Post subject: Reply with quote

Question_dev wrote:
PIRATA NERVo == COPY/PASTER

He ask every code for his app on forums/sites/tutorials/source code

This code comes from : http://www.pspcrazy.com/index.php?page=Story&id=736

Load pbp => this site

Filbrowser => slasher

etc....


listen here question_dev,
i did this:
- Load PBP, I MADE IT BY MY SELF, I used that code only to understand the MIPS bootstrap by Dark Alex.
- Filebrowser, I used that one and modified it a lot. I also made a new file browser for my theme chooser.

Please, don't talk about me when you don't know me.

@Wally4000, I don't even know LUA.
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Mar 30, 2008 5:57 am    Post subject: Reply with quote

Let's just hope the mods play a game of "lock and delete this thread" sometime soon.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun Mar 30, 2008 9:15 am    Post subject: Reply with quote

Oh cool then!

Well im on your side then :)

Im sick of the LUA shells too :P
Back to top
View user's profile Send private message AIM Address
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Sun Mar 30, 2008 9:41 am    Post subject: Reply with quote

Drama lock!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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