mirror of
https://github.com/paleotronic/diskm8.git
synced 2025-01-17 15:30:29 +00:00
system and extension chunking fixes
This commit is contained in:
parent
0a4cc590d8
commit
358c50662f
13
shell.go
13
shell.go
@ -1105,7 +1105,9 @@ func shellPut(args []string) int {
|
|||||||
addrStr := m[0][2]
|
addrStr := m[0][2]
|
||||||
addr, _ = strconv.ParseInt(addrStr, 0, 32)
|
addr, _ = strconv.ParseInt(addrStr, 0, 32)
|
||||||
} else {
|
} else {
|
||||||
name = strings.Replace(name, "."+ext, "", -1)
|
//name = strings.Replace(name, "."+ext, "", -1)
|
||||||
|
l := len(ext) + 1
|
||||||
|
name = name[:len(name)-l]
|
||||||
}
|
}
|
||||||
|
|
||||||
kind = disk.AppleDOSFileTypeFromExt(ext)
|
kind = disk.AppleDOSFileTypeFromExt(ext)
|
||||||
@ -1143,11 +1145,18 @@ func shellPut(args []string) int {
|
|||||||
addrStr := m[0][2]
|
addrStr := m[0][2]
|
||||||
addr, _ = strconv.ParseInt(addrStr, 0, 32)
|
addr, _ = strconv.ParseInt(addrStr, 0, 32)
|
||||||
} else {
|
} else {
|
||||||
name = strings.Replace(name, "."+ext, "", -1)
|
l := len(ext) + 1
|
||||||
|
name = name[:len(name)-l]
|
||||||
}
|
}
|
||||||
|
|
||||||
kind := disk.ProDOSFileTypeFromExt(ext)
|
kind := disk.ProDOSFileTypeFromExt(ext)
|
||||||
|
|
||||||
|
if strings.ToLower(ext) == "system" {
|
||||||
|
name += "." + ext
|
||||||
|
ext = ""
|
||||||
|
kind = disk.ProDOSFileTypeFromExt("SYS")
|
||||||
|
}
|
||||||
|
|
||||||
if strings.HasSuffix(args[0], ".INT.ASC") {
|
if strings.HasSuffix(args[0], ".INT.ASC") {
|
||||||
kind = disk.FileType_PD_INT
|
kind = disk.FileType_PD_INT
|
||||||
} else if strings.HasSuffix(args[0], ".APP.ASC") {
|
} else if strings.HasSuffix(args[0], ".APP.ASC") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user