資源簡介
華碩H81M-K奔騰G3250.zip
代碼片段和文件信息
//
//??plugin_start.cpp
//??Lilu
//
//??Copyright???2016-2017?vit9696.?All?rights?reserved.
//
#include?
#include?
#include?
#ifndef?LILU_CUSTOM_KMOD_INIT
bool?ADDPR(startSuccess)?=?false;
#else
//?Workaround?custom?kmod?code?and?enable?by?default
bool?ADDPR(startSuccess)?=?true;
#endif
bool?ADDPR(debugEnabled)?=?false;
uint32_t?ADDPR(debugPrintDelay)?=?0;
#if?!defined(LILU_CUSTOM_KMOD_INIT)?||?!defined(LILU_CUSTOM_IOKIT_INIT)
static?const?char?kextVersion[]?{
#ifdef?DEBUG
‘D‘?‘B‘?‘G‘?‘-‘
#else
‘R‘?‘E‘?‘L‘?‘-‘
#endif
xStringify(MODULE_VERSION)[0]?xStringify(MODULE_VERSION)[2]?xStringify(MODULE_VERSION)[4]?‘-‘
getBuildYear<0>()?getBuildYear<1>()?getBuildYear<2>()?getBuildYear<3>()?‘-‘
getBuildMonth<0>()?getBuildMonth<1>()?‘-‘?getBuildDay<0>()?getBuildDay<1>()?‘\0‘
};
#endif
#ifndef?LILU_CUSTOM_IOKIT_INIT
OSDefinemetaClassAndStructors(PRODUCT_NAME?IOService)
PRODUCT_NAME?*ADDPR(selfInstance)?=?nullptr;
IOService?*PRODUCT_NAME::probe(IOService?*provider?SInt32?*score)?{
ADDPR(selfInstance)?=?this;
setProperty(“VersionInfo“?kextVersion);
auto?service?=?IOService::probe(provider?score);
return?ADDPR(startSuccess)???service?:?nullptr;
}
bool?PRODUCT_NAME::start(IOService?*provider)?{
ADDPR(selfInstance)?=?this;
if?(!IOService::start(provider))?{
SYSLOG(“init“?“failed?to?start?the?parent“);
return?false;
}
return?ADDPR(startSuccess);
}
void?PRODUCT_NAME::stop(IOService?*provider)?{
ADDPR(selfInstance)?=?nullptr;
IOService::stop(provider);
}
#endif?/*?LILU_CUSTOM_IOKIT_INIT?*/
#ifndef?LILU_CUSTOM_KMOD_INIT
EXPORT?extern?“C“?kern_return_t?ADDPR(kern_start)(kmod_info_t?*?void?*)?{
//?This?is?an?ugly?hack?necessary?on?some?systems?where?buffering?kills?most?of?debug?output.
PE_parse_boot_argn(“l(fā)iludelay“?&ADDPR(debugPrintDelay)?sizeof(ADDPR(debugPrintDelay)));
auto?error?=?lilu.requestAccess();
if?(error?==?LiluAPI::Error::NoError)?{
error?=?lilu.shouldLoad(ADDPR(config).product?ADDPR(config).version?ADDPR(config).runmode?ADDPR(config).disableArg?ADDPR(config).disableArgNum
ADDPR(config).debugArg?ADDPR(config).debugArgNum?ADDPR(config).betaArg?ADDPR(config).betaArgNum?ADDPR(config).minKernel
ADDPR(config).maxKernel?ADDPR(debugEnabled));
if?(error?==?LiluAPI::Error::NoError)?{
DBGLOG(“init“?“%s?bootstrap?%s“?xStringify(PRODUCT_NAME)?kextVersion);
(void)kextVersion;
ADDPR(startSuccess)?=?true;
ADDPR(config).pluginStart();
}?else?{
SYSLOG(“init“?“parent?said?we?should?not?continue?%d“?error);
}
lilu.releaseAccess();
}?else?{
SYSLOG(“init“?“failed?to?call?parent?%d“?error);
}
//?Report?success?but?actually?do?not?start?and?let?I/O?Kit?unload?us.
//?This?works?better?and?increases?boot?speed?in?some?cases.
return?KERN_SUCCESS;
}
EXPORT?extern?“C“?kern_return_t?ADDPR(kern_stop)(kmod_info_t?*?void?*)?{
//?It?is?not?safe?to?unload?Lilu?plugins?unless?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-10-02?03:11??EFI\
?????目錄???????????0??2019-09-27?18:55??EFI\APPLE\
?????文件????????6148??2019-04-06?13:05??EFI\.DS_Store
?????目錄???????????0??2019-10-02?03:11??EFI\BOOT\
?????目錄???????????0??2019-10-04?10:01??EFI\CLOVER\
?????文件????????2015??2019-10-02?03:11??EFI\Clover_Install_Log.txt
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER11\
?????目錄???????????0??2019-10-01?08:59??EFI\APPLE\FIRMWARE\
?????目錄???????????0??2019-09-27?18:55??EFI\APPLE\EXTENSIONS\
?????目錄???????????0??2019-09-27?18:55??EFI\APPLE\UPDATERS\
?????文件??????929920??2019-09-28?09:48??EFI\BOOT\BOOTX64.efi
?????目錄???????????0??2019-10-02?03:11??EFI\CLOVER\misc\
?????目錄???????????0??2019-10-02?03:11??EFI\CLOVER\ACPI\
?????目錄???????????0??2019-10-02?03:11??EFI\CLOVER\tools\
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER\drivers64UEFI\
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER\drivers64\
?????目錄???????????0??2019-10-02?03:11??EFI\CLOVER\kexts\
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER\OEM\
?????目錄???????????0??2019-10-02?03:11??EFI\CLOVER\ROM\
?????目錄???????????0??2019-10-02?03:11??EFI\CLOVER\doc\
?????文件???????13121??2019-10-04?11:34??EFI\CLOVER\config.plist
?????文件?????????333??2019-10-04?11:35??__MACOSX\EFI\CLOVER\._config.plist
?????目錄???????????0??2019-10-04?10:02??EFI\CLOVER\themes\
?????文件??????929920??2019-09-28?09:48??EFI\CLOVER\CLOVERX64.efi
?????文件????????4096??2019-10-04?11:35??EFI\CLOVER\._config.plist
?????目錄???????????0??2019-10-02?03:00??EFI\CLOVER\drivers\
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER11\ACPI\
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER11\tools\
?????文件????????8196??2019-04-06?13:06??EFI\CLOVER11\.DS_Store
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER11\drivers64UEFI\
?????目錄???????????0??2019-09-30?22:54??EFI\CLOVER11\drivers64\
............此處省略1005個文件信息
評論
共有 條評論