mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-25 03:17:53 +00:00
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:
committed by
GitHub
parent
403ae5d044
commit
3d0ef63537
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user