mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2026-04-24 08:16:31 +00:00
OSFIND: no wildcards when mode is "w" (OPENOUT)
This commit is contained in:
Binary file not shown.
+5
-1
@@ -91,8 +91,12 @@ RENFILE >>> ENTMAIN
|
||||
OFILE >>> ENTMAIN
|
||||
PHA ; Preserve arg for later
|
||||
JSR PREPATH ; Preprocess pathname
|
||||
PLA
|
||||
PHA
|
||||
CMP #$80 ; Is it "w"?
|
||||
BEQ :S1 ; If so, no wildcards
|
||||
JSR WILDONE ; Handle any wildcards
|
||||
JSR EXISTS ; See if file exists ...
|
||||
:S1 JSR EXISTS ; See if file exists ...
|
||||
CMP #$02 ; ... and is a directory
|
||||
BNE :NOTDIR
|
||||
JMP :NOTFND ; Bail out if directory
|
||||
|
||||
Reference in New Issue
Block a user