Hold down shift key to prevent loading extensions?

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
emendelson
Forum All-Star
Posts: 1949
Joined: Tue Oct 14, 2008 12:12 am

Hold down shift key to prevent loading extensions?

Post by emendelson »

On a real PPC Mac, I can hold down the shift key to prevent extensions from loading. I've almost never been able to make this work correctly in SheepShaver for macOS. Extensions always load.

Does the shift key work correctly for other people running SheepShaver under macOS?
User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Hold down shift key to prevent loading extensions?

Post by Cat_7 »

The shift key does work, but it requires almost inhuman speed (or call it sheer luck) to get it recognized during boot. I don't know, but perhaps it would be possible to already scan the keyboard for a pressed shift key when one starts SheepShaver. As said, I have no idea whether a key can be 'injected' into the boot process to be picked up when the OS checks for it.

The BasiliskII-only pref delay will not work. But perhaps turning off the JIT improves your chances.

Best,
Cat_7
User avatar
Ronald P. Regensburg
Expert User
Posts: 8202
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Hold down shift key to prevent loading extensions?

Post by Ronald P. Regensburg »

It can be done, but it requires very precise timing. Press the shift key after the mac icon appears and before the Mac OS welcome screen appears.
emendelson
Forum All-Star
Posts: 1949
Joined: Tue Oct 14, 2008 12:12 am

Re: Hold down shift key to prevent loading extensions?

Post by emendelson »

Ronald P. Regensburg wrote: Sun Aug 24, 2025 7:09 pm It can be done, but it requires very precise timing. Press the shift key after the mac icon appears and before the Mac OS welcome screen appears.
Yes! That works with Mac OS 9. Thank you!
joevt
Tinkerer
Posts: 76
Joined: Mon Feb 01, 2010 3:08 am

Re: Hold down shift key to prevent loading extensions?

Post by joevt »

I added code to DingusPPC emulator to check all the keys being pressed during startup and post key down events for all of them (modifier keys first). It has to be early enough for the keys to register, but not too early that the guest boot code forgets them. I don't know exactly what the best time is.
https://github.com/dingusdev/dingusppc/ ... c9d5532951

Ideally, the guest should be able to see keys that are being pressed even if they began being pressed before the emulator started, as long as the keys are still being pressed.
User avatar
Ronald P. Regensburg
Expert User
Posts: 8202
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Hold down shift key to prevent loading extensions?

Post by Ronald P. Regensburg »

emendelson wrote: Sun Aug 24, 2025 7:16 pm
Ronald P. Regensburg wrote: Sun Aug 24, 2025 7:09 pm It can be done, but it requires very precise timing. Press the shift key after the mac icon appears and before the Mac OS welcome screen appears.
Yes! That works with Mac OS 9. Thank you!
It works for all startup keys, like also for option-command for rebuilding the desktop files.
Post Reply