Extend context menu for disk buttons (Disk image QoL) (#1363, PR #1364)

Persist menu selection for bitsy.boot, bitsy.bye, basis & prodos.sys to Registry.
Add new cmd line '-bootsector <pathname>'.
Add BootSector (code & binary).
Add OS (basic17.system, bitsy.boot, quit.system; DOS33 & ProDOS2.4.3).
Update help doc:
. add workflow info to ddi-create.html.
. add new ddi-sizes.html, and ddi-advanced.html (for advanced workflow).
This commit is contained in:
Michael "Code Poet" Pohoreski
2025-05-22 22:44:28 -07:00
committed by GitHub
parent 403ae5d044
commit 3d0ef63537
40 changed files with 2667 additions and 61 deletions
+36
View File
@@ -712,6 +712,42 @@ bool ProcessCmdLine(LPSTR lpCmdLine)
{
g_cmdLine.useHdcFirmwareV2 = true;
}
else if (strcmp(lpCmdLine, "-bootsector") == 0)
{
lpCmdLine = GetCurrArg(lpNextArg);
lpNextArg = GetNextArg(lpNextArg);
char sPath[ MAX_PATH];
DWORD res = GetFullPathName(lpCmdLine, MAX_PATH, sPath, NULL);
if (!res)
{
LogFileOutput( "ERROR: Couldn't get full path for custom boot sector file: %s\n", lpCmdLine );
}
FILE *pFile = fopen( sPath, "rb");
if (pFile)
{
fseek( pFile, 0, SEEK_END );
size_t nSize = ftell( pFile );
fseek( pFile, 0, SEEK_SET );
fclose( pFile );
if (nSize > 0)
{
g_cmdLine.sBootSectorFileName = sPath;
g_cmdLine.nBootSectorFileSize = nSize;
}
else
{
g_cmdLine.nBootSectorFileSize = 0;
LogFileOutput( "INFO: Custom Boot Sector size = %zu\n", nSize );
}
}
else
{
LogFileOutput( "ERROR: Couldn't open custom boot sector file: %s\n", lpCmdLine );
}
}
else if (strcmp(lpCmdLine, "-alt-cpu-emu") == 0) // debug
{
g_cmdLine.useAltCpuEmulation = true;