mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
provide default dict name for first game
This commit is contained in:
parent
7226c92adf
commit
db9391df36
1 changed files with 8 additions and 0 deletions
|
@ -97,8 +97,16 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
|
|||
str = bname( gi->dictName );
|
||||
XP_MEMCPY( giState->newDictName, gi->dictName,
|
||||
(XP_U16)XP_STRLEN(gi->dictName) );
|
||||
|
||||
} else if ( !!(str = ceLocateNthDict( MPPARM(globals->mpool) 0 ) ) ) {
|
||||
XP_MEMCPY( giState->newDictName, str, (XP_U16)XP_STRLEN(str) );
|
||||
XP_FREE( MPPARM(globals->mpool), str );
|
||||
str = bname( giState->newDictName );
|
||||
|
||||
} else {
|
||||
#ifdef STUBBED_DICT
|
||||
/* assumption is there's no dict on the device */
|
||||
XP_ASSERT( !ceLocateNthDict( MPPARM(globals->mpool) 0 ) );
|
||||
str = "(Stub dict)";
|
||||
#else
|
||||
str = "--pick--";
|
||||
|
|
Loading…
Add table
Reference in a new issue