equal
deleted
inserted
replaced
136 |
136 |
137 //Check for file, if not found, check language downgrade path |
137 //Check for file, if not found, check language downgrade path |
138 if( !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ) |
138 if( !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ) |
139 { |
139 { |
140 RArray<TLanguage> langs; |
140 RArray<TLanguage> langs; |
|
141 CleanupClosePushL( langs ); |
141 BaflUtils::GetDowngradePathL( aFileSystem, langcode, langs ); |
142 BaflUtils::GetDowngradePathL( aFileSystem, langcode, langs ); |
142 //add current language to array for ROM fetching |
143 //add current language to array for ROM fetching |
143 langs.Append( langcode ); |
144 langs.AppendL( langcode ); |
144 TInt current = langs.Count() - 1; |
145 TInt current = langs.Count() - 1; |
145 do |
146 do |
146 { |
147 { |
147 lcstring.Num( (TInt64)langs[current] ); |
148 lcstring.Num( (TInt64)langs[current] ); |
148 codelen = lcstring.Length()>1?lcstring.Length():KMinLangCodeLen; |
149 codelen = lcstring.Length()>1?lcstring.Length():KMinLangCodeLen; |
163 locfile->Des().Insert( 0, PathInfo::RomRootPath().Left( KPathStartLoc ) ); |
164 locfile->Des().Insert( 0, PathInfo::RomRootPath().Left( KPathStartLoc ) ); |
164 current--; |
165 current--; |
165 } while ( current >= 0 && |
166 } while ( current >= 0 && |
166 !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ); |
167 !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ); |
167 } |
168 } |
168 langs.Reset(); |
169 |
169 langs.Close(); |
170 CleanupStack::PopAndDestroy( &langs ); |
170 } |
171 } |
171 |
172 |
172 |
173 |
173 if ( BaflUtils::FileExists( aFileSystem, locfile->Des() ) ) |
174 if ( BaflUtils::FileExists( aFileSystem, locfile->Des() ) ) |
174 { |
175 { |