MiniVMac.cc: Get Finder/MacsBug name from boot blocks

Closes: #172
This commit is contained in:
Ryan Schmidt
2022-09-22 03:28:22 -05:00
parent 8fdb2f3a84
commit 171577c140

View File

@@ -269,11 +269,13 @@ MiniVMacLauncher::MiniVMacLauncher(po::variables_map &options)
CopySystemFile(systemFileName, true); CopySystemFile(systemFileName, true);
CopySystemFile("MacsBug", false); string debuggerFileName(bootblock1.begin() + 0x2B, bootblock1.begin() + 0x2B + bootblock1[0x2A]);
CopySystemFile(debuggerFileName, false);
if (usesAutQuit7) if (usesAutQuit7)
{ {
CopySystemFile("Finder", true); string finderFileName(bootblock1.begin() + 0x1B, bootblock1.begin() + 0x1B + bootblock1[0x1A]);
CopySystemFile(finderFileName, true);
CopySystemFile("System 7.5 Update", false); CopySystemFile("System 7.5 Update", false);
if(hfs_chdir(sysvol, "Extensions") != -1) if(hfs_chdir(sysvol, "Extensions") != -1)
{ {