Defined a struct to contain the date and time data
To keep backward compatibility auxtype and the date/time are kept separated. A struct similar to the one used in dirent.h is used to access the create_date and create_time fields.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
;
|
||||
|
||||
.export _open, closedirect, freebuffer
|
||||
.export __filetype, __auxtype
|
||||
.export __filetype, __auxtype, __datetime
|
||||
.constructor raisefilelevel
|
||||
.destructor closeallfiles, 5
|
||||
|
||||
@@ -246,5 +246,6 @@ __filetype:
|
||||
__auxtype:
|
||||
.word $0000 ; AUX_TYPE: Load address N/A
|
||||
.byte $01 ; STORAGE_TYPE: Standard seedling file
|
||||
__datetime:
|
||||
.word $0000 ; CREATE_DATE: Current date
|
||||
.word $0000 ; CREATE_TIME: Current time
|
||||
|
||||
Reference in New Issue
Block a user