2 Commits
Author SHA1 Message Date
Luxferre 27c669f67f v0.4: fixed default value validation for v3 2024-10-12 17:05:16 +03:00
Luxferre b749722945 bumped version 2024-10-12 16:44:43 +03:00
+4 -2
View File
@@ -7,7 +7,7 @@
package require Tk package require Tk
set appversion 0.2 set appversion 0.4
set scriptpath [file normalize [info script]] set scriptpath [file normalize [info script]]
set appdir [file dirname $scriptpath] set appdir [file dirname $scriptpath]
# check if we're running from a starpack # check if we're running from a starpack
@@ -359,7 +359,9 @@ proc fullscanscheme {version} {
if {$size eq 1} {set fmt cu} if {$size eq 1} {set fmt cu}
if {$size eq 2} {set fmt s} if {$size eq 2} {set fmt s}
if {$size eq 4} {set fmt i} if {$size eq 4} {set fmt i}
binary scan [string range $rawschemedata $offs [expr {$offs + $size}]] $fmt wscval set newval ""
binary scan [string range $rawschemedata $offs [expr {$offs + $size}]] $fmt newval
if {$newval ne ""} {set wscval $newval}
if {([llength $valopt] > 1) && ([lindex $valopt 0] eq "spec")} { if {([llength $valopt] > 1) && ([lindex $valopt 0] eq "spec")} {
set readfunc "[lindex $valopt 1]_read" set readfunc "[lindex $valopt 1]_read"
set wscval [$readfunc $wscval] set wscval [$readfunc $wscval]