void AUTO_FLASH_FUNCTION()
{
  int flag=1;
  char Option[10];
  
  while(flag)
   {  
       UI_TOP(Language);
       DISPLAY("AUTO_FLASH",Language);   
       
      scanf("%s",Option);
      
     if ( strcmp(Option,"yes")==0 || strcmp(Option,"YES")==0 )  
       { 
          AUTO_FLASH(Language,Device); 
          flag=0; 
       }
     else if ( strcmp(Option,"no")==0 || strcmp(Option,"NO")==0 ) 
       { 
          UI_TOP(Language);
          DISPLAY("AUTO_FLASH_OFF",Language); 
          PAUSE();   
          flag=0; 
       }
   }    

}
void CHOSE_DEVICE()
{
  int flag=1,Option;
  
  while(flag)
   {  
     UI_TOP(Language); 
                
     DISPLAY("CHOSE_DEVICE",Language); 
     
     Option=(getchar()-'0');
     
     if ( Option==1 || Option==2 || Option==3 || Option==4 || Option==5 || Option==6 )  
     {         
        if( CHOSE_DEVICE_CONFIRM(Option) )  flag=0;
     }   
   }
   
  switch(Option)
   {
      case 1: { Device.XPERIA_ARC_LT15i=1;   break;}
      case 2: { Device.XPERIA_ARC_S_LT18i=1; break;}
      case 3: { Device.XPERIA_NEO_MT15i=1;   break;}      
      case 4: { Device.XPERIA_NEO_V_MT11i=1; break;}        
      case 5: { Device.XPERIA_RAY_ST18i=1;   break;} 
      case 6: { Device.XPERIA_PLAY_R800i=1;  break;}       
   }
}
int CHOSE_DEVICE_CONFIRM(int Choice)
{
  char Option[10];
  
  while(1)
   {  
      UI_TOP(Language);
      DISPLAY("CHOSE_DEVICE_CONFIRM_1",Language);   
      
      if      ( Choice==1 )    puts("XPERIA ARC LT15i\n");
      else if ( Choice==2 )    puts("XPERIA ARC S LT18i\n");
      else if ( Choice==3 )    puts("XPERIA NEO MT15i\n"); 
      else if ( Choice==4 )    puts("XPERIA NEO V MT11i\n");     
      else if ( Choice==5 )    puts("XPERIA RAY ST18i\n");  
      else if ( Choice==6 )    puts("XPERIA PLAY R800i\n");   
        
      DISPLAY("CHOSE_DEVICE_CONFIRM_2",Language);    
       
      scanf("%s",Option);
       
     if ( strcmp(Option,"yes")==0 || strcmp(Option,"YES")==0 )      return 1;
     else if ( strcmp(Option,"no")==0 || strcmp(Option,"NO")==0 )   return 0;
   }       
     
}
void DESCRIPTION()
{
  UI_TOP(Language);   
  
  DISPLAY("DESCRIPTION",Language);
  
  PAUSE();
}
void MIUI_ROM_CHECK()
{
     while(FILE_CHECK("MIUI_DHD_ROM\\MIUI.zip")==0)
     {
       UI_TOP(Language);    
       
       DISPLAY("MIUI_ROM_CHECK",Language);             
                   
       PAUSE();                              
     }
}
void YOUR_CHOICE()
{
  int flag=1;
  
  while(flag)
   {  
     UI_TOP(Language);           
     DISPLAY("ADDON_BlendUI",Language);
     Addon.BlendUI=(getchar()-'0'); 
     if ( Addon.BlendUI==1 || Addon.BlendUI==0 )  flag=0;   
   }

  flag=1;
  while(flag)
   {  
     UI_TOP(Language);           
     DISPLAY("ADDON_DSPManager",Language);
     Addon.DSPManager=(getchar()-'0'); 
     if ( Addon.DSPManager==1 || Addon.DSPManager==0 )  flag=0;   
   }     
      
  flag=1;
  while(flag)
   {  
     UI_TOP(Language);           
     DISPLAY("ADDON_SE_Media",Language);
     Addon.SE_Media=(getchar()-'0'); 
     if ( Addon.SE_Media==1 || Addon.SE_Media==0 )  flag=0;   
   }    

  flag=1;
  while(flag)
   {  
     UI_TOP(Language);           
     DISPLAY("ADDON_Tweaks",Language);
     Addon.Tweaks=(getchar()-'0'); 
     if ( Addon.Tweaks==1 || Addon.Tweaks==0 )  flag=0;   
   }       
}
Exemplo n.º 7
0
static void screen_or_buf_dimensions(
		window *win, int *const y, int *const height)
{
	int nlines = list_count(win->buf->head);

	*y = UI_TOP(win);

	if(nlines < win->screen_coord.h)
		*height = nlines - *y;
	else
		*height = win->screen_coord.h - 1;

	if(*height < 0)
		*height = 0;
}
void SHOW_PROGRESS(Step)
{
   int i;
   
   UI_TOP(Language);
   
   for( i=1 ; i<=Step ; i++ ) 
   {
      if( i==1 )                  DISPLAY("SHOW_PROGRESS_1",Language);
      else if( i==2 )             DISPLAY("SHOW_PROGRESS_2",Language);                                    
      else if( i==3 )             DISPLAY("SHOW_PROGRESS_3",Language);                        
      else if( i==4 )             DISPLAY("SHOW_PROGRESS_4",Language);                       
      else if( i==5 && Step==5 )  DISPLAY("SHOW_PROGRESS_5",Language);
      else if( i==6 )             DISPLAY("SHOW_PROGRESS_6",Language);              
    }                      
     
}
Exemplo n.º 9
0
int m_sos(motion_arg const *m, unsigned repeat, window *win, point_t *to)
{
	to->y = UI_TOP(win);
	start_of_line(to, win);
	return MOTION_SUCCESS;
}