skins/AknSkins/sdcsrc/SDCReader.cpp
branchRCL_3
changeset 107 9f95a5546443
parent 106 e4e3998ddda2
child 111 2fab78db5d89
equal deleted inserted replaced
106:e4e3998ddda2 107:9f95a5546443
   986     {
   986     {
   987     if( gInput.NextToken() )
   987     if( gInput.NextToken() )
   988         {
   988         {
   989         bool changed( true );
   989         bool changed( true );
   990         if( sd_wcscasecmp( gInput.iToken, iData->iBmpPath ) == 0 ) changed = false;
   990         if( sd_wcscasecmp( gInput.iToken, iData->iBmpPath ) == 0 ) changed = false;
       
   991         iData->SetBmpPath( gInput.iToken );
   991         char buf[512];
   992         char buf[512];
   992         CSDCInput::ConvertToAscii( buf, gInput.iToken );
   993         CSDCInput::ConvertToAscii( buf, gInput.iToken );
   993 
       
   994         /* prepend EPOCROOT on linux */
       
   995         if(buf[0] == '/')
       
   996             {
       
   997 #if (defined(__MSVCRT__) || defined(_MSC_VER))
       
   998             /* FIXME: We have to use \\ for referencing root path on Windows? */
       
   999             buf[0] = '\\';
       
  1000             
       
  1001             CSDCInput::ConvertToWchar(gInput.iToken, buf);
       
  1002 #else
       
  1003             char b[512];
       
  1004 
       
  1005             sprintf(b, "%s%s", getenv("EPOCROOT"), buf);
       
  1006 
       
  1007             strcpy(buf, b);
       
  1008 
       
  1009             CSDCInput::ConvertToWchar(gInput.iToken, b);
       
  1010 #endif
       
  1011             }
       
  1012 
       
  1013         iData->SetBmpPath( gInput.iToken );
       
  1014         
       
  1015         if( changed )
   994         if( changed )
  1016             printf("NOTE: Bitmap source path set to %s\n", buf );
   995             printf("NOTE: Bitmap source path set to %s\n", buf );
  1017         }
   996         }
  1018     else
   997     else
  1019         {
   998         {