| View previous topic :: View next topic |
| Author |
Message |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sat Mar 01, 2008 4:02 am Post subject: |
|
|
Try replacing your Remove_file function with this
| Code: |
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);
}
}
|
|
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 01, 2008 4:27 am Post subject: |
|
|
| 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 ? |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sat Mar 01, 2008 4:45 am Post subject: |
|
|
| 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, |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 01, 2008 5:01 am Post subject: |
|
|
Cannot delete :x
...
thanks |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 01, 2008 5:12 am Post subject: |
|
|
| same way... maybe it's my code ? or an include inside my main.c ? |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 01, 2008 5:32 am Post subject: |
|
|
maybe not ^^
it's really a strange bug... it's a possessed file... need an exorcist |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sat Mar 01, 2008 5:34 am Post subject: |
|
|
| I'm really not sure then, |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 01, 2008 5:48 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sat Mar 01, 2008 5:56 am Post subject: |
|
|
| I will rip apart my code and put something together for you but it won't be tonight as i'm feeling really ill, |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 01, 2008 6:04 am Post subject: |
|
|
| no problem i'll try to finish another project... an open source - hud plug-in |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sat Mar 01, 2008 11:52 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sat Mar 01, 2008 12:46 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sat Mar 01, 2008 1:03 pm Post subject: |
|
|
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, |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sun Mar 02, 2008 3:58 am Post subject: |
|
|
I can't launch your code without k1.5 in 3.90M33-2
but now i'll try to re-install pspdev |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sun Mar 02, 2008 4:23 am Post subject: |
|
|
What folder have you been putting it in?
GAME or GAME150 ? |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sun Mar 02, 2008 7:54 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
hibbyware
Joined: 28 Mar 2007 Posts: 78
|
Posted: Sun Mar 02, 2008 9:23 pm Post subject: |
|
|
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, |
|
| Back to top |
|
 |
Alree
Joined: 26 Feb 2008 Posts: 33
|
Posted: Sun Mar 02, 2008 10:03 pm Post subject: |
|
|
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... |
|
| Back to top |
|
 |
|