mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-01 19:57:11 +01:00
param change
This commit is contained in:
parent
aedabc5aa0
commit
030759d5fe
1 changed files with 12 additions and 4 deletions
|
@ -191,8 +191,16 @@ readFileToBuf( XP_UCHAR* dictBuf, const RFile* file )
|
||||||
} // readFileToBuf
|
} // readFileToBuf
|
||||||
|
|
||||||
DictionaryCtxt*
|
DictionaryCtxt*
|
||||||
sym_dictionary_makeL( MPFORMAL TFileName* nameD )
|
sym_dictionary_makeL( MPFORMAL const XP_UCHAR* aDictName )
|
||||||
{
|
{
|
||||||
|
_LIT( dir,"z:\\system\\apps\\XWORDS\\" );
|
||||||
|
TFileName nameD; /* need the full path to name in this */
|
||||||
|
nameD.Copy( dir );
|
||||||
|
TBuf8<32> dname8(aDictName);
|
||||||
|
TBuf16<32> dname16;
|
||||||
|
dname16.Copy( dname8 );
|
||||||
|
nameD.Append( dname16 );
|
||||||
|
nameD.Append( _L(".xwd") );
|
||||||
SymDictCtxt* ctxt = NULL;
|
SymDictCtxt* ctxt = NULL;
|
||||||
TInt err;
|
TInt err;
|
||||||
|
|
||||||
|
@ -201,7 +209,7 @@ sym_dictionary_makeL( MPFORMAL TFileName* nameD )
|
||||||
CleanupClosePushL(fileSession);
|
CleanupClosePushL(fileSession);
|
||||||
|
|
||||||
RFile file;
|
RFile file;
|
||||||
User::LeaveIfError( file.Open( fileSession, *nameD, EFileRead ) );
|
User::LeaveIfError( file.Open( fileSession, nameD, EFileRead ) );
|
||||||
CleanupClosePushL(file);
|
CleanupClosePushL(file);
|
||||||
|
|
||||||
ctxt = (SymDictCtxt*)XP_MALLOC( mpool, sizeof(*ctxt) );
|
ctxt = (SymDictCtxt*)XP_MALLOC( mpool, sizeof(*ctxt) );
|
||||||
|
@ -291,8 +299,8 @@ sym_dictionary_makeL( MPFORMAL TFileName* nameD )
|
||||||
ctxt->super.base = (array_edge*)NULL;
|
ctxt->super.base = (array_edge*)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
CleanupStack::PopAndDestroy();
|
CleanupStack::PopAndDestroy(); // file
|
||||||
CleanupStack::PopAndDestroy();
|
CleanupStack::PopAndDestroy(); // fileSession
|
||||||
|
|
||||||
return &ctxt->super;
|
return &ctxt->super;
|
||||||
} // sym_dictionary_make
|
} // sym_dictionary_make
|
||||||
|
|
Loading…
Add table
Reference in a new issue