mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 21:49:33 +00:00
LaunchAPPLServer: compatibility fix for older Universal Interfaces (fixes #77)
This commit is contained in:
parent
c208bacbd6
commit
4895adbaa7
@ -689,10 +689,13 @@ int main()
|
||||
portsAvailable[(int)Port::macTCP] = true;
|
||||
if(Gestalt(gestaltSerialAttr, &resp) == noErr)
|
||||
{
|
||||
// gestaltPortADisabled and gestaltPortBDisabled are "recent" additions
|
||||
// (Universal Interfaces 3.4 only). Use the literal constants for compatibility
|
||||
// in case people are using older interfaces.
|
||||
portsAvailable[(int)Port::modemPort] =
|
||||
(resp & ((1 << gestaltHidePortA) | (1<< gestaltPortADisabled))) == 0;
|
||||
(resp & ((1 << gestaltHidePortA) | (1<< 5/*gestaltPortADisabled*/))) == 0;
|
||||
portsAvailable[(int)Port::printerPort] =
|
||||
(resp & ((1 << gestaltHidePortB) | (1<< gestaltPortBDisabled))) == 0;
|
||||
(resp & ((1 << gestaltHidePortB) | (1<< 6/*gestaltPortBDisabled*/))) == 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user