Wey need to populate the default engines list with correct values,  
otherwise the users just find that Scid is broken (analysis,  serious  
game, etc. don't work). So, I modified the code for the default engine  
list, would something like this work? (I don't like the "folder names"  
part, maybe we could install the engines without their parent folders?).

Israel

# Read the user Engine List file now:
#
catch { ::enginelist::read }
if {[llength $engines(list)] == 0} {
   # No engines, so set up a default engine list:
   if { $::macOS } {
     set enginesFolder $::scidExeDir
     set phalanxFolder ""
     set togaFolder ""
     set scidletFolder $::scidExeDir
   } else {
     set engineFolder "${::scidShareDir}engines/"
     set phalanxFolder "Phalanx-XXII/"
     set togaFolder "togaII1.2.1a/"
     set scidletFolder "."
   }
   set folders [list "$enginesFolder$phalanxFolder/" \
                     "$enginesFolder$togaFolder/" \
                     "$scidletFolder/"]
   foreach engName {Phalanx Toga Scidlet} \
     cmd {phalanx fruit scidlet} \
     folder $folders uci {1 1 0} {
     if {$::windowsOS && $cmd == "scidlet"} {
       set cmd [file join $::scidExeDir scidlet.exe]
     }
     engine [list \
         Name $engName \
         Cmd  $folder$cmd \
         Dir  . \
         UCI  $uci \
         UCIoptions {} \
     ]
   }
}


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to