~amsn-daily/amsn/amsn-packaging

« back to all changes in this revision

Viewing changes to audio.tcl

  • Committer: kakaroto
  • Date: 2008-12-09 20:51:05 UTC
  • Revision ID: svn-v4:f248a3e1-9e13-0410-b2cf-a4429de6d898:trunk/amsn:10796
fix require_snack to correctly load snack even if we're not on Linux, this should fix it for BSD users. Thanks to RedGhost for reporting

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
proc require_snack { } {
9
9
        if {[package provide snack] != ""} {
10
10
                return
11
 
        } elseif {[OnLinux] } {
12
 
                package require snack
13
 
        } elseif {[OnWin] } {
 
11
        }  elseif {[OnWin] } {
14
12
                if { [catch {
15
13
                        load [file join utils windows snack2.2 libsnack.dll]
16
14
                        source [file join utils windows snack2.2 snack.tcl]
28
26
                        }
29
27
                        source [file join utils macosx snack2.2 snack.tcl]
30
28
                }
 
29
        } else {
 
30
                package require snack
31
31
        }
32
32
        
33
33
        # If snack didn't get loaded, then an error would have been thrown out and we wouldn't be here setting SnackSettings...