mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
accept dicts with full paths (linux)
This commit is contained in:
parent
2f849efe2a
commit
0f7d924a8e
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ initFromDictFile( LinuxDictionaryCtxt* dctx, const LaunchParams* params,
|
|||
XP_U32 topOffset;
|
||||
char path[256];
|
||||
|
||||
if ( !getDictPath( params, fileName, path, VSIZE(path) ) ) {
|
||||
if ( file_exists( fileName ) ) {
|
||||
snprintf( path, VSIZE(path), "%s", fileName );
|
||||
} else if ( !getDictPath( params, fileName, path, VSIZE(path) ) ) {
|
||||
XP_LOGF( "%s: path=%s", __func__, path );
|
||||
goto closeAndExit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue