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 

How to change vsh/module attibut
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 4:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

PostPosted: Sat Mar 01, 2008 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 4:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

PostPosted: Sat Mar 01, 2008 4:49 am    Post subject: Reply with quote

http://ambyans.free.fr/remove_src.rar

thanks =)
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 4:55 am    Post subject: Reply with quote

Here you go,

http://www.sendspace.com/file/95txv0
Back to top
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

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

Cannot delete :x
...
thanks
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 5:06 am    Post subject: Reply with quote

Try this one I changed something in the makefile,

http://www.sendspace.com/file/tauk3v
Back to top
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

PostPosted: Sat Mar 01, 2008 5:12 am    Post subject: Reply with quote

same way... maybe it's my code ? or an include inside my main.c ?
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 5:25 am    Post subject: Reply with quote

maybe just maybe --> http://www.sendspace.com/file/wo3dbd lol
Back to top
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

PostPosted: Sat Mar 01, 2008 5:32 am    Post subject: Reply with quote

maybe not ^^
it's really a strange bug... it's a possessed file... need an exorcist
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 5:34 am    Post subject: Reply with quote

I'm really not sure then,
Back to top
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

PostPosted: Sat Mar 01, 2008 5:48 am    Post subject: Reply with quote

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
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 5:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

PostPosted: Sat Mar 01, 2008 6:04 am    Post subject: Reply with quote

no problem i'll try to finish another project... an open source - hud plug-in
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 11:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

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

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
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sat Mar 01, 2008 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

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

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
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

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

What folder have you been putting it in?

GAME or GAME150 ?
Back to top
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

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

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
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Sun Mar 02, 2008 9:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alree



Joined: 26 Feb 2008
Posts: 33

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

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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