Re:MacRelix – Unix-like features for classic Mac OS
by lampiaio on Monday May 13, 2024 @11:27AM
(#40344426)
Out of curiosity, how is MacRelix able to detect even under what emulator the system is running on?
Re:MacRelix – Unix-like features for classic Mac OS
by jjuran on Monday May 13, 2024 @12:49PM
(#40345315)
It's mostly checking Gestalt() and scanning the unit table for specific graphics drivers, occasionally peeking in low memory. (My own v68k core identifies itself through undefined CCR bits in the CHK instruction.)
Have a look at tools/mac/system-info/system-info.cc and mac/libs/mac-sys-utils/mac_sys/has/virtualization.hh in the metamage_1 repository.
I'm delighted that you've noticed and appreciate this. :-)