You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that Paul has already implemented something like this. I just found the code snippet below in my NewtTest code, which I think I got from Paul a long time ago. It seems that Paul has extended the NewtonScript Gestalt call, which normally only allows queries for system info and backlight.
However, this code snippet still shows Einstein version 2007.7 although I'm running 2022 4.17.
constant kGestaltArg_EinsteinEmulatorInfo := '[0x03000002, [struct,long], 1];
constant kDR1Version := 0x00010000;
/**
* Determine if we're under Einstein Emulator, and if so, its version.
*
* @return nil if we're on a hardware unit, the Einstein Emulator version
* otherwise.
*/
DefConst('kDetermineEinsteinEmulatorVersionFn,
func() begin
local theResult := Gestalt(kGestaltArg_EinsteinEmulatorInfo);
if (theResult) then return theResult[0] else return nil;
end
);
pguyot
changed the title
Provide a means to get the current Einstein version from NewtonScript.
Gestalt doesn't report the proper version
Feb 12, 2022
The subject says it all :-)
The text was updated successfully, but these errors were encountered: