mirror of
https://github.com/tylernguyen/x1c6-hackintosh.git
synced 2025-02-05 01:23:14 -06:00
51 lines
1 KiB
Text
51 lines
1 KiB
Text
![]() |
/*
|
||
|
* Detect Darwin (OSX) to enable other patches
|
||
|
* Credits @osy86
|
||
|
*/
|
||
|
|
||
|
DefinitionBlock ("", "SSDT", 2, "tyler", "_Darwin", 0)
|
||
|
{
|
||
|
Method (DTGP, 5, NotSerialized)
|
||
|
{
|
||
|
If ((Arg0 == ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b")))
|
||
|
{
|
||
|
If ((Arg1 == One))
|
||
|
{
|
||
|
If ((Arg2 == Zero))
|
||
|
{
|
||
|
Arg4 = Buffer (One)
|
||
|
{
|
||
|
0x03
|
||
|
}
|
||
|
Return (One)
|
||
|
}
|
||
|
|
||
|
If ((Arg2 == One))
|
||
|
{
|
||
|
Return (One)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Arg4 = Buffer (One)
|
||
|
{
|
||
|
0x00
|
||
|
}
|
||
|
Return (Zero)
|
||
|
}
|
||
|
|
||
|
Scope (\)
|
||
|
{
|
||
|
Method (OSDW, 0, NotSerialized)
|
||
|
{
|
||
|
If (CondRefOf (\_OSI, Local0))
|
||
|
{
|
||
|
If (_OSI ("Darwin"))
|
||
|
{
|
||
|
Return (One) // is Darwin
|
||
|
}
|
||
|
}
|
||
|
Return (Zero)
|
||
|
}
|
||
|
}
|
||
|
}
|