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
			
			
									
									
						 
		 
				
		
		 
	 
				
				
		
		
			
				
																			
								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 ^^
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								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.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								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..no change .no change no change no change no change 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,
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								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
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								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?
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								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.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								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?
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								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