Load Iso's/Cso's

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Locked
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Load Iso's/Cso's

Post by Pirata Nervo »

Shouldn't this function work?

Code: Select all

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: Select all

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.
DeathCradle
Posts: 6
Joined: Sat Jan 19, 2008 10:56 pm
Contact:

Re: Load Iso's/Cso's

Post by DeathCradle »

Pirata Nervo wrote:Shouldn't this function work?
.............Have you even tested it yet??
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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: Select all

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
DeathCradle
Posts: 6
Joined: Sat Jan 19, 2008 10:56 pm
Contact:

Post by DeathCradle »

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: Select all

pspSdkLoadStartModule()
Or

Code: Select all

LoadExec
lol can't remember?

& i'm not sure if i linked a iso prx
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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.
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

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.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

dax's documentations say that sceKerneLoadExecMS2 "loads games (and homebrew :P) "
Last edited by Pirata Nervo on Sun Mar 02, 2008 8:09 am, edited 1 time in total.
Image
Upgrade your PSP
jas0nuk
Posts: 137
Joined: Thu Apr 27, 2006 8:00 am

Post by jas0nuk »

He means it loads game executables

You can't load ISOs directly -_- They are disc images.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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?
Image
Upgrade your PSP
Shapyi
Posts: 95
Joined: Mon Apr 25, 2005 9:31 am

Post by Shapyi »

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.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

ok, so thank you.
Image
Upgrade your PSP
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Tinnus
Posts: 67
Joined: Sat Jul 29, 2006 1:12 am

Post by Tinnus »

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.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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.
Image
Upgrade your PSP
peb
Posts: 26
Joined: Mon Mar 12, 2007 10:01 pm

Post by peb »

And what cory said you to resolve your problem please? (I have the same error 8002014E)
Sorry for my English, I'm french.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Cory only gave me a hint, not the code..
Image
Upgrade your PSP
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

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....
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

I guess he makes lame lua shells too.
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

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,
jo3_sum
Posts: 17
Joined: Wed Jan 30, 2008 5:38 am
Contact:

Post by jo3_sum »

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".
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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.
Image
Upgrade your PSP
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Let's just hope the mods play a game of "lock and delete this thread" sometime soon.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Oh cool then!

Well im on your side then :)

Im sick of the LUA shells too :P
User avatar
jbit
Site Admin
Posts: 293
Joined: Sat May 28, 2005 3:11 am
Location: København, Danmark
Contact:

Post by jbit »

Drama lock!
Locked