equal
deleted
inserted
replaced
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 { |