-
大小: 295KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-06-09
- 语言: 其他
- 标签: FixEDID2.3.2
资源简介
FixEDID-2.3.2
MACOS修复显示器参数
FixEDID-2.3.2
MACOS修复显示器参数
代码片段和文件信息
/*
* Copyright � 1998-2012 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the ‘License‘). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this
* file.
*
* The Original Code and all software distributed under the License are
* distributed on an ‘AS IS‘ basis WITHOUT WARRANTY OF ANY KIND EITHER
* EXPRESS OR IMPLIED AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES
* INCLUDING WITHOUT LIMITATION ANY WARRANTIES OF MERCHANTABILITY
* FITNESS FOR A PARTICULAR PURPOSE QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
*
* @APPLE_LICENSE_HEADER_END@
*/
#include
#include
#include “DisplayMergeNub.h“
#include “KextVer.h“
OSDefinemetaClassAndStructors(DisplayMergeNub IOService)
static bool haveCreatedRef = false;
bool
DisplayMergeNub::start(IOService *provider)
{
IOLog(“%s\n“ (const char *)DisplayMergeNubVersionString);
IOLog(“Version %f\n“ DisplayMergeNubVersionNumber);
IOLog(“Copyright © 2013-2014 AnV Software\n“);
return (true);
}
//================================================================================================
//
// probe()
//
// This is a special Display driver which will always fail to probe. However the probe
// will have a side effect which is that it merge a property dictionary into his provider‘s
// parent NUB in the IOService if the device and vendor match
//
//================================================================================================
//
IOService *
DisplayMergeNub::probe(IOService *provider SInt32 *score)
{
#pragma unused (score)
OSDictionary *providerDict = (OSDictionary*)getProperty(“IOProviderMergeProperties“);
OSNumber *providerVendor = (OSNumber*)provider->getProperty(“DisplayVendorID“);
OSNumber *providerDevice = (OSNumber*)provider->getProperty(“DisplayProductID“);
OSString *providerDisplayPrefs = (OSString*)provider->getProperty(“IODisplayPrefsKey“);
OSNumber *vendorValue = (OSNumber*)getProperty(“DisplayVendorID“);
OSNumber *deviceValue = (OSNumber*)getProperty(“DisplayProductID“);
OSString *displayPrefs = (OSString*)getProperty(“IODisplayPrefsKey“);
OSBoolean *ignoreDisplayPrefs = (OSBoolean*)getProperty(“IgnoreDisplayPrefs“);
OSString *displayOverrideClass = (OSString*)providerDict->getobject(“IOClass“);
if ((providerDict) && (providerVendor->unsigned64BitValue() == vendorValue->unsigned64BitValue()) && (providerDevice->unsigned64BitValue() == deviceValue->unsigned64BitValue()))
{
// provider->getPropertyTable()->merge(providerDict); // merge will verify th
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8 2018-01-10 11:06 readme
目录 0 2014-02-24 00:35 FixEDID\
文件 15364 2014-04-15 13:15 FixEDID\.DS_Store
目录 0 2014-04-18 16:00 __MACOSX\
目录 0 2014-04-18 16:00 __MACOSX\FixEDID\
文件 120 2014-04-15 13:15 __MACOSX\FixEDID\._.DS_Store
目录 0 2014-04-18 15:58 FixEDID\.git\
目录 0 2013-06-23 20:35 FixEDID\.git\branches\
文件 15 2013-06-23 20:35 FixEDID\.git\COMMIT_EDITMSG
文件 111 2013-06-23 20:35 FixEDID\.git\config
文件 73 2013-06-23 20:35 FixEDID\.git\desc
文件 23 2013-06-23 20:35 FixEDID\.git\HEAD
目录 0 2013-06-23 20:35 FixEDID\.git\hooks\
文件 452 2013-06-23 20:35 FixEDID\.git\hooks\applypatch-msg.sample
文件 896 2013-06-23 20:35 FixEDID\.git\hooks\commit-msg.sample
文件 189 2013-06-23 20:35 FixEDID\.git\hooks\post-update.sample
文件 398 2013-06-23 20:35 FixEDID\.git\hooks\pre-applypatch.sample
文件 1704 2013-06-23 20:35 FixEDID\.git\hooks\pre-commit.sample
文件 4951 2013-06-23 20:35 FixEDID\.git\hooks\pre-reba
文件 1239 2013-06-23 20:35 FixEDID\.git\hooks\prepare-commit-msg.sample
文件 3611 2013-06-23 20:35 FixEDID\.git\hooks\update.sample
文件 1920 2014-04-15 13:13 FixEDID\.git\index
目录 0 2013-06-23 20:35 FixEDID\.git\info\
文件 35 2013-06-23 20:35 FixEDID\.git\info\exclude
目录 0 2014-04-18 16:00 __MACOSX\FixEDID\.git\
目录 0 2014-04-18 16:00 __MACOSX\FixEDID\.git\info\
文件 171 2013-06-23 20:35 __MACOSX\FixEDID\.git\info\._exclude
目录 0 2013-06-23 20:35 FixEDID\.git\logs\
文件 177 2013-06-23 20:35 FixEDID\.git\logs\HEAD
目录 0 2013-06-23 20:35 FixEDID\.git\logs\refs\
目录 0 2013-06-23 20:35 FixEDID\.git\logs\refs\heads\
............此处省略169个文件信息
评论
共有 条评论