From 171577c14029d0b61d070ac091bb9b5beb17f651 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Thu, 22 Sep 2022 03:28:22 -0500 Subject: [PATCH] MiniVMac.cc: Get Finder/MacsBug name from boot blocks Closes: #172 --- LaunchAPPL/Client/MiniVMac.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LaunchAPPL/Client/MiniVMac.cc b/LaunchAPPL/Client/MiniVMac.cc index 199e658fb0..e6daae9bb4 100644 --- a/LaunchAPPL/Client/MiniVMac.cc +++ b/LaunchAPPL/Client/MiniVMac.cc @@ -269,11 +269,13 @@ MiniVMacLauncher::MiniVMacLauncher(po::variables_map &options) CopySystemFile(systemFileName, true); - CopySystemFile("MacsBug", false); + string debuggerFileName(bootblock1.begin() + 0x2B, bootblock1.begin() + 0x2B + bootblock1[0x2A]); + CopySystemFile(debuggerFileName, false); if (usesAutQuit7) { - CopySystemFile("Finder", true); + string finderFileName(bootblock1.begin() + 0x1B, bootblock1.begin() + 0x1B + bootblock1[0x1A]); + CopySystemFile(finderFileName, true); CopySystemFile("System 7.5 Update", false); if(hfs_chdir(sysvol, "Extensions") != -1) {