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 ); |
|
142 BaflUtils::GetDowngradePathL( aFileSystem, langcode, langs ); |
141 BaflUtils::GetDowngradePathL( aFileSystem, langcode, langs ); |
143 //add current language to array for ROM fetching |
142 //add current language to array for ROM fetching |
144 langs.AppendL( langcode ); |
143 langs.Append( langcode ); |
145 TInt current = langs.Count() - 1; |
144 TInt current = langs.Count() - 1; |
146 do |
145 do |
147 { |
146 { |
148 lcstring.Num( (TInt64)langs[current] ); |
147 lcstring.Num( (TInt64)langs[current] ); |
149 codelen = lcstring.Length()>1?lcstring.Length():KMinLangCodeLen; |
148 codelen = lcstring.Length()>1?lcstring.Length():KMinLangCodeLen; |
164 locfile->Des().Insert( 0, PathInfo::RomRootPath().Left( KPathStartLoc ) ); |
163 locfile->Des().Insert( 0, PathInfo::RomRootPath().Left( KPathStartLoc ) ); |
165 current--; |
164 current--; |
166 } while ( current >= 0 && |
165 } while ( current >= 0 && |
167 !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ); |
166 !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ); |
168 } |
167 } |
169 |
168 langs.Reset(); |
170 CleanupStack::PopAndDestroy( &langs ); |
169 langs.Close(); |
171 } |
170 } |
172 |
171 |
173 |
172 |
174 if ( BaflUtils::FileExists( aFileSystem, locfile->Des() ) ) |
173 if ( BaflUtils::FileExists( aFileSystem, locfile->Des() ) ) |
175 { |
174 { |