mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
clean: remove config old code
This commit is contained in:
parent
16f853b68b
commit
b815f489d2
|
@ -418,7 +418,7 @@ Group loadGroup( QDomElement grp, unsigned * nextId = 0 )
|
|||
return g;
|
||||
}
|
||||
|
||||
MutedDictionaries loadMutedDictionaries( QDomNode mutedDictionaries )
|
||||
MutedDictionaries loadMutedDictionaries( const QDomNode & mutedDictionaries )
|
||||
{
|
||||
MutedDictionaries result;
|
||||
|
||||
|
@ -482,37 +482,6 @@ Class load()
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
|
||||
// get path to Program Files
|
||||
wchar_t buf[ MAX_PATH ];
|
||||
SHGetFolderPathW( NULL, CSIDL_PROGRAM_FILES, NULL, 0, buf );
|
||||
QString pathToProgramFiles = QString::fromWCharArray( buf );
|
||||
if ( pathToProgramFiles.isEmpty() )
|
||||
pathToProgramFiles = "C:\\Program Files";
|
||||
|
||||
if ( QDir( pathToProgramFiles + "\\StarDict\\dic" ).exists() )
|
||||
c.paths.push_back( Path( pathToProgramFiles + "\\StarDict\\dic", true ) );
|
||||
|
||||
if ( QDir( pathToProgramFiles + "\\StarDict\\WyabdcRealPeopleTTS" ).exists() )
|
||||
c.soundDirs.push_back( SoundDir( pathToProgramFiles + "\\StarDict\\WyabdcRealPeopleTTS", "WyabdcRealPeopleTTS" ) );
|
||||
else
|
||||
if ( QDir( pathToProgramFiles + "\\WyabdcRealPeopleTTS" ).exists() )
|
||||
c.soundDirs.push_back( SoundDir( pathToProgramFiles + "\\WyabdcRealPeopleTTS", "WyabdcRealPeopleTTS" ) );
|
||||
|
||||
// #### "C:/Program Files" is bad! will not work for German Windows etc.
|
||||
// #### should be replaced to system path
|
||||
|
||||
// if ( QDir( "C:/Program Files/StarDict/dic" ).exists() )
|
||||
// c.paths.push_back( Path( "C:/Program Files/StarDict/dic", true ) );
|
||||
//
|
||||
// if ( QDir( "C:/Program Files/StarDict/WyabdcRealPeopleTTS" ).exists() )
|
||||
// c.soundDirs.push_back( SoundDir( "C:/Program Files/StarDict/WyabdcRealPeopleTTS", "WyabdcRealPeopleTTS" ) );
|
||||
// else
|
||||
// if ( QDir( "C:/Program Files/WyabdcRealPeopleTTS" ).exists() )
|
||||
// c.soundDirs.push_back( SoundDir( "C:/Program Files/WyabdcRealPeopleTTS", "WyabdcRealPeopleTTS" ) );
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef Q_OS_WIN32
|
||||
c.preferences.audioPlaybackProgram = "mplayer";
|
||||
|
|
Loading…
Reference in a new issue