[iso] add Windows ISO version report

* Use sources/compatresources.dll, when available, to try to detect the Windows ISO version and build.
* Also report what facility we use for formatting.
This commit is contained in:
Pete Batard 2021-10-08 11:14:29 +01:00
parent e6a967c5c9
commit a10b8e8c54
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
11 changed files with 107 additions and 23 deletions

View file

@ -333,6 +333,13 @@ enum checksum_type {
#define SYMLINKS_RR 0x01
#define SYMLINKS_UDF 0x02
typedef struct {
uint16_t major;
uint16_t minor;
uint16_t build;
uint16_t revision;
} winver_t;
typedef struct {
char label[192]; // 3*64 to account for UTF-8
char usb_label[192]; // converted USB label for workaround
@ -367,10 +374,12 @@ typedef struct {
BOOLEAN needs_syslinux_overwrite;
BOOLEAN has_grub4dos;
BOOLEAN has_grub2;
BOOLEAN has_compatresources_dll;
BOOLEAN has_kolibrios;
BOOLEAN uses_casper;
BOOLEAN uses_minint;
BOOLEAN compression_type;
winver_t win_version; // Windows ISO version
uint16_t sl_version; // Syslinux/Isolinux version
char sl_version_str[12];
char sl_version_ext[32];