Added possibility to customize DISK_LABEL

This commit is contained in:
cecio
2023-06-10 23:11:53 +02:00
parent 386852c994
commit 7bcca191cc
2 changed files with 9 additions and 2 deletions

View File

@@ -84,7 +84,8 @@ boolean written_reported = false;
//
// Set USB IDs strings and numbers, to avoid possible detections.
// Remember that you can cusotmize FAKE_DISK_BLOCK_NUM as well
// for the same reason.
// for the same reason. Also DISK_LABEL in ramdisk.h can be changed.
//
// You can see here for inspiration: https://the-sz.com/products/usbid/
//
// Example:

View File

@@ -35,9 +35,15 @@
// README.TXT
// System Volume Information
//
// Keep 11 chars
#define DISK_LABEL 'M', 'y', 'D', 'r', 'i', 'v', 'e', ' ', ' ', ' ', ' '
// Do not change this here, it is just for reference
#define README_CONTENTS \
"...nuke the entire site from orbit. It's the only way to be sure."
// Do not change this here, it is just for reference
#define AUTORUN_CONTENTS \
"[autorun]\r\nopen=calc.exe\r\nicon=icon.ico\r\n"
@@ -134,7 +140,7 @@ uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] = {
},
{
//------------- Block 7: -------------//
0x55, 0x53, 0x42, 0x56, 0x41, 0x4c, 0x56, 0x45, 0x20, 0x20, 0x20, 0x08, 0x00, 0x00, 0xaf, 0x60,
DISK_LABEL, 0x08, 0x00, 0x00, 0xaf, 0x60,
0x6d, 0x55, 0x6d, 0x55, 0x00, 0x00, 0xaf, 0x60, 0x6d, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x41, 0x55, 0x54, 0x4f, 0x52, 0x55, 0x4e, 0x20, 0x49, 0x4e, 0x46, 0x20, 0x00, 0x9d, 0xef, 0x58,
0x6d, 0x55, 0x6b, 0x55, 0x00, 0x00, 0xef, 0x58, 0x6d, 0x55, 0x60, 0x00, 0x2a, 0x00, 0x00, 0x00,