mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-02-09 19:31:13 +00:00
Fix some Apple /// differences
This commit is contained in:
parent
6b1123a95b
commit
1f42523014
@ -33,7 +33,7 @@ import fileio
|
||||
byte entry_minver
|
||||
byte entry_access
|
||||
word entry_aux
|
||||
word entry_mod
|
||||
word entry_mod[2]
|
||||
word entry_headptr
|
||||
end
|
||||
//
|
||||
|
@ -298,7 +298,7 @@ def a3write(refnum, buff, len)
|
||||
params:2 = buff
|
||||
params:4 = len
|
||||
perr = syscall($CB, @params)
|
||||
return perr
|
||||
return perr ?? 0 :: len
|
||||
end
|
||||
def a1create(path, type, aux)
|
||||
return perr
|
||||
|
@ -162,9 +162,9 @@ if not except(exit)
|
||||
if ^arg
|
||||
struprcpy(@path, arg)
|
||||
//
|
||||
// Check if cataloging a directory
|
||||
// Check if cataloging a directory or volume
|
||||
//
|
||||
if fileio:getfileinfo(@path, @fileinfo) <> FILE_ERR_OK or fileinfo.file_type <> $0F
|
||||
if fileio:getfileinfo(@path, @fileinfo) <> FILE_ERR_OK or (fileinfo.storage_type & $0D <> $0D)
|
||||
filefrompath(@wildname, @path)
|
||||
fin
|
||||
path = path - wildname
|
||||
|
@ -252,7 +252,7 @@ if not except(exit)
|
||||
srcfileptr = srcfilelist
|
||||
while srccnt
|
||||
dstlen = dstpath
|
||||
if fileio:getfileinfo(srcfileptr, @srcfileinfo) == FILE_ERR_OK and srcfileinfo.file_type == $0F
|
||||
if fileio:getfileinfo(srcfileptr, @srcfileinfo) == FILE_ERR_OK and (srcfileinfo.storage_type & $0D == $0D)
|
||||
if recurse
|
||||
//
|
||||
// Copy directory
|
||||
|
@ -152,7 +152,7 @@ if not except(exit)
|
||||
//
|
||||
// Delete files in list
|
||||
//
|
||||
if recurse and fileio:getfileinfo(fileptr, @fileinfo) == FILE_ERR_OK and fileinfo.file_type == $0F
|
||||
if recurse and fileio:getfileinfo(fileptr, @fileinfo) == FILE_ERR_OK and (fileinfo.storage_type & $0D == $0D)
|
||||
strcpy(@path,fileptr)
|
||||
strcat(@path, "/")
|
||||
delfiles(@path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user