Search results

  1. ryandesign

    [SOLVED] No Dark Castle on Mac Portables?

    I'm glad I could help! Though it would be better to have a "proper" fix. The one above just bypasses the machine model check and always pretends to be a Mac II. The original game would display an incompatibility dialog and exit on a Macintosh 128K or XL; the patched one might crash. And it might...
  2. ryandesign

    68k Why call FlushEvents between InitFonts and InitWindows?

    Thanks, the concern about inadvertently clearing disk-inserted events had occurred to me but I don't think I had found that example buried in Tech Note #135 before. Looking at the ROM disassembly in Gryphel FDisasm, I agree: In the 128K ROM, FlushEvents ANDs with FlEventMask (which is set...
  3. ryandesign

    68k Why call FlushEvents between InitFonts and InitWindows?

    Is anyone aware of any Apple documentation that explains the reasoning behind the specific place that they suggested calling FlushEvents during application initialization? The Road Map chapter of Inside Macintosh I suggested the Toolbox be initialized this way: BEGIN {main program} {...
  4. ryandesign

    68k Archiver/extractor that works on a Macintosh 128K

    What's the best archiver (or at least something that can extract an archive) that works on the Macintosh 128K and ideally with the oldest system versions? Compactor 1.21 (later known as Compact Pro) doesn't work: I made a self-extracting archive on a Macintosh Classic and tried opening it on a...
  5. ryandesign

    68k Determining amount of installed RAM

    The size difference is pretty negligible, but the glue does include support for a bunch of Gestalt selectors I'll never use so it just seems wasteful to ship that code in my app. I do care about Switcher—at least about not crashing under Switcher or other unusual configurations even if I can't...
  6. ryandesign

    68k Determining amount of installed RAM

    Oh! You know, I've been spending too much time with Retro68, where you don't get much glue. I remembered that other environments have glue for SysEnvirons but I forgot about glue for Gestalt. According to THINK Reference, "If you are using THINK C 5.0 or later, THINK Pascal 4.0 or later, or the...
  7. ryandesign

    68k Determining amount of installed RAM

    I find asking for help is often a great way to cause the answer magically to reveal itself. If you wish to see this function put to use in an actual program, see https://github.com/ryandesign/memdump The commit that added the code for this is...
  8. ryandesign

    68k Determining amount of installed RAM

    Yes it does, I just have to #include <MultiFinder.h> first. That's not one of the headers that are auto-included via MacHeaders.
  9. ryandesign

    68k Determining amount of installed RAM

    Tech Note TB-14, MultiFinder Frequently Asked Questions, answers the question "How can I tell if the MultiFinder Temporary Memory Allocation calls are implemented?" (Check if the _OSDispatch trap A88F is implemented.)
  10. ryandesign

    68k Determining amount of installed RAM

    I've now found a copy of Tech Note OV-17, MultiFinder Revisited: The 6.0 System, which seems to have the answer I'm looking for: MFTopMem(). (It mentions that MFTopMem() is documented incorrectly in the Programmer's Guide to MultiFinder and provides a corrected description.) My MPW 3.5 universal...
  11. ryandesign

    68k Determining amount of installed RAM

    I'm having trouble programmatically determining how much memory is in the computer. For the original Macintosh and later systems not running MultiFinder, the answer seems to be the TopMem() function, which returns the _MemTop global variable. However when running MultiFinder it returns the end...
  12. ryandesign

    ThinkC Locate the current System Folder

    If you're interested in the System file, the preceding is correct. If you're looking for the System Folder, then in System 7 and later you should use FindFolder. Your development environment might include glue code that lets you use FindFolder even on systems older than 7; if not, you'll need...
  13. ryandesign

    Dual Boot Linux Mint 21.2 and macOS with OpenCore Legacy Patcher and OpenCore Bootpicker

    I know I can get a custom icon to appear on my Linux Mint partition in OCLP by creating the file /Volumes/EFI/EFI/ubuntu/.contentFlavour with the contents Mint:Linux but does anyone know where to get the actual Mint.icns and ExtMint.icns icons to put in...
  14. ryandesign

    Dual Boot Linux Mint 21.2 and macOS with OpenCore Legacy Patcher and OpenCore Bootpicker

    rikerjoe, thank you also from me. When I installed Linux Mint for the first time a few months ago, it set up the computer to boot into grub automatically. Later I rebooted to a macOS partition using the boot picker after which I could not figure out how to return to Linux until I found your very...
Back