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 » Sat Mar 01, 2008 4:02 am
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 (test_del<0) {
pspDebugScreenSetTextColor(0x000000FF);
printf("%s - Cannot delete file\n", Delfile);
}else{
pspDebugScreenSetTextColor(0x0000FF00);
printf("%s - File Deleted OK\n", Delfile);
}
}
Alree
Posts: 33 Joined: Tue Feb 26, 2008 10:50 pm
Post
by Alree » Sat Mar 01, 2008 4:27 am
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 » Sat Mar 01, 2008 4:45 am
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 » Sat Mar 01, 2008 4:49 am
Alree
Posts: 33 Joined: Tue Feb 26, 2008 10:50 pm
Post
by Alree » Sat Mar 01, 2008 5:01 am
Cannot delete :x
...
thanks
Alree
Posts: 33 Joined: Tue Feb 26, 2008 10:50 pm
Post
by Alree » Sat Mar 01, 2008 5:12 am
same way... maybe it's my code ? or an include inside my main.c ?
Alree
Posts: 33 Joined: Tue Feb 26, 2008 10:50 pm
Post
by Alree » Sat Mar 01, 2008 5:32 am
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 » Sat Mar 01, 2008 5:34 am
I'm really not sure then,
Alree
Posts: 33 Joined: Tue Feb 26, 2008 10:50 pm
Post
by Alree » Sat Mar 01, 2008 5:48 am
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 » Sat Mar 01, 2008 5:56 am
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 » Sat Mar 01, 2008 6:04 am
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 » Sat Mar 01, 2008 11:52 am
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 » Sat Mar 01, 2008 12:46 pm
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 » Sat Mar 01, 2008 1:03 pm
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 » Sun Mar 02, 2008 3:58 am
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 » Sun Mar 02, 2008 4:23 am
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 » Sun Mar 02, 2008 7:54 am
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 » Sun Mar 02, 2008 9:23 pm
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 » Sun Mar 02, 2008 10:03 pm
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...