From 86bcf325806562bff5b489720a8057174bb2da42 Mon Sep 17 00:00:00 2001 From: Colin Leroy-Mira Date: Sun, 17 Aug 2025 17:28:03 +0200 Subject: [PATCH] Apple2: Add file_set_type() and file_set_auxtype() MLI wrapper to be able to update existing ProDOS files' type and auxtype. --- doc/apple2.sgml | 2 + doc/apple2enh.sgml | 2 + doc/funcref.sgml | 46 ++++++++++++++++++++ include/apple2.h | 6 +++ include/apple2_filetype.h | 2 + libsrc/apple2/file_set_info.s | 79 +++++++++++++++++++++++++++++++++++ libsrc/apple2/mli.inc | 3 ++ 7 files changed, 140 insertions(+) create mode 100644 libsrc/apple2/file_set_info.s diff --git a/doc/apple2.sgml b/doc/apple2.sgml index ec9598d04..286acc252 100644 --- a/doc/apple2.sgml +++ b/doc/apple2.sgml @@ -354,6 +354,8 @@ usage. allow_lowercase beep dir_entry_count +file_set_auxtype +file_set_type get_tv get_ostype gmtime_dt diff --git a/doc/apple2enh.sgml b/doc/apple2enh.sgml index 1e94d3b60..c2076923a 100644 --- a/doc/apple2enh.sgml +++ b/doc/apple2enh.sgml @@ -333,6 +333,8 @@ usage. _datetime beep dir_entry_count +file_set_auxtype +file_set_type get_tv get_ostype gmtime_dt diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 6561c13ec..013389b06 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -98,6 +98,8 @@ function. allow_lowercase + + @@ -114,6 +116,8 @@ function. _dos_type + + @@ -4267,6 +4271,48 @@ file may have unpredictable results. +file_set_auxtype