How to change vsh/module attibut

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

Moderators: cheriff, TyRaNiD

hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Try replacing your Remove_file function with this

Code: Select all

void Remove_file(char * Delfile) {

	int test_del;
	SceIoStat stats;
	memset(&stats, 0, sizeof(SceIoStat));
	sceIoGetstat( Delfile, &stats);
	stats.st_attr &= ~0x0F;    // This line is differant from the example given by Gh0st-UPMS
	sceIoChstat( Delfile, &stats,  3);
	sceIoChstat( Delfile, &stats,  4);
	sceIoChstat( Delfile, &stats,  6);
	test_del = sceIoRemove(Delfile);
	
	if &#40;test_del<0&#41; &#123;
		pspDebugScreenSetTextColor&#40;0x000000FF&#41;;
		printf&#40;"%s - Cannot delete file\n", Delfile&#41;;
	&#125;else&#123;
		pspDebugScreenSetTextColor&#40;0x0000FF00&#41;;
		printf&#40;"%s - File Deleted OK\n", Delfile&#41;;
	&#125;

&#125; 
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

johnmph wrote:
Alree wrote:Tested, and that's work on your app... but I don't understand why only in your app
So it's maybe a SDK or compiler problem, try to update PSPSDK.
it's a fresh install... via tortoise svn...



hibbyware, try and test failed...
anyone can compile my own source file and send to me EBOOT to try with another SDK installation ?
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Alree wrote: anyone can compile my own source file and send to me EBOOT to try with another SDK installation ?
Upload your main.c and makefile so that I can compile it for you,
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

Cannot delete :x
...
thanks
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Try this one I changed something in the makefile,

http://www.sendspace.com/file/tauk3v
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

same way... maybe it's my code ? or an include inside my main.c ?
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

maybe just maybe --> http://www.sendspace.com/file/wo3dbd lol
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

maybe not ^^
it's really a strange bug... it's a possessed file... need an exorcist
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

I'm really not sure then,
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

thanks for testing.

i'll try to re-write some remove function... but it's very strange your deleting function on your browser works perfectly in my system and in 3.90M33... so there is a solution
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

I will rip apart my code and put something together for you but it won't be tonight as i'm feeling really ill,
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

no problem i'll try to finish another project... an open source - hud plug-in
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Alree wrote:no problem i'll try to finish another project... an open source - hud plug-in
Well I started to feel a bit better so I uploaded this for you to try and it has been tested and works on mine,

http://www.mediafire.com/?p52hd1xdygw
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

ok..
- just tested your compiled EBOOT include in zipfile... no change.

- I've compiled your main.c ... no change

- Compiled with a modified makefile and with your 380SDK files paste with others .h and .a of SDK ... that's the same but it's funny to test xD ... no change

- Compiled without prx and without the 380 version in makefile ... no change

And just for fun (again) tested with your dummy.txt instead of mine ... no change

I'll try to reinstall all my sdk when svn.ps2dev.org will be not forbidden to me...

or Maybe do you have change anything on your flash before ? like a batch script to have all access ?
i've 2 PSP just flashed, so it's a never modified one on it...

... thanks for all test, I'm tired (3.45AM here) and sorry for my english... i'm french and it's not easy to explain without coffe in my blood ^^
Tomorow i'll try again... again... again
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Well i'm 100% sure it worked on mine and I tested it with a few differant file attributes set,

So it seems it must be something to do with your PSP,

I'm still using 3.80m33-5 with no 1.50 kernel add-on at the moment,
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

I can't launch your code without k1.5 in 3.90M33-2
but now i'll try to re-install pspdev
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

What folder have you been putting it in?

GAME or GAME150 ?
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

ok was a mistake.
I can load eboot in /GAME/
but dummy.txt stay invsh/module and svn is down T_T

Ok just compiled with a fresh sdk... in 3.90M33 that's doesn't work. dummy.txt can't be deleted...
and your Flasher work ... in 3.90M33-2
hibbyware
Posts: 78
Joined: Wed Mar 28, 2007 10:29 am

Post by hibbyware »

Does the eboot I supplied with the example delete the dummy.txt?

I'm 100% sure is working on mine so i'm not really sure what's wrong,
Alree
Posts: 33
Joined: Tue Feb 26, 2008 10:50 pm

Post by Alree »

eboot in archive doesn't delete dummy.txt

I'm in 3.90M33 now, so there is maybe a problem with that...

but:
- With a a new install of pspdev with latest SDK, if I try to compile your source ... I've two problem..
- error 80020148
or if I change your makefile to use my include directory instead your own... I can run EBOOT but dummy file stay in flash0.

...
And your HB works fine...
Post Reply