exclude doubles

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2021-10-30 11:55:55 +03:00
parent aebddff13d
commit b624e4d1e9
2 changed files with 3 additions and 6 deletions

View File

@ -2102,7 +2102,7 @@ printf("%s", "");
XBool SetupVirtualMap = false;
XBool SignalAppleOS = false;
XBool SyncRuntimePermissions = false;
uint8_t ResizeAppleGpuBars = 0; // 0 is NOT the default value if not set in config.plist. Default value if not set is returned by dgetResizeAppleGpuBars()
int8_t ResizeAppleGpuBars = 0; // 0 is NOT the default value if not set in config.plist. Default value if not set is returned by dgetResizeAppleGpuBars()
#if __cplusplus > 201703L
XBool operator == (const OcBooterQuirksClass&) const = default;
@ -2127,7 +2127,7 @@ printf("%s", "");
if ( !(SetupVirtualMap == other.SetupVirtualMap) ) return false;
if ( !(SignalAppleOS == other.SignalAppleOS) ) return false;
if ( !(SyncRuntimePermissions == other.SyncRuntimePermissions) ) return false;
if ( !(ResizeAppleGpuBars == other.ResizeAppleGpuBars) ) return false;
return true;
}
void takeValueFrom(const ConfigPlistClass::Quirks_Class::OcBooterQuirks_Class& other)
@ -2150,7 +2150,6 @@ printf("%s", "");
SetupVirtualMap = other.dgetSetupVirtualMap();
SignalAppleOS = other.dgetSignalAppleOS();
SyncRuntimePermissions = other.dgetSyncRuntimePermissions();
ResizeAppleGpuBars = other.dgetResizeAppleGpuBars();
}
};

View File

@ -102,7 +102,6 @@ public:
XmlBool SetupVirtualMap = XmlBool();
XmlBool SignalAppleOS = XmlBool();
XmlBool SyncRuntimePermissions = XmlBool();
XmlInt8 ResizeAppleGpuBars = XmlInt8();
XBool dgetAvoidRuntimeDefrag() const { return parent.isDefined() ? AvoidRuntimeDefrag.isDefined() ? AvoidRuntimeDefrag.value() : XBool(true) : XBool(false); }; // TODO: different default value if section is not defined
XBool dgetDevirtualiseMmio() const { return DevirtualiseMmio.isDefined() ? DevirtualiseMmio.value() : DevirtualiseMmio.nullValue; };
@ -121,7 +120,7 @@ public:
XBool dgetSetupVirtualMap() const { return parent.isDefined() ? SetupVirtualMap.isDefined() ? SetupVirtualMap.value() : XBool(true) : SetupVirtualMap.nullValue; }; // TODO: different default value if section is not defined
XBool dgetSignalAppleOS() const { return SignalAppleOS.isDefined() ? SignalAppleOS.value() : SignalAppleOS.nullValue; };
XBool dgetSyncRuntimePermissions() const { return parent.isDefined() ? SyncRuntimePermissions.isDefined() ? SyncRuntimePermissions.value() : XBool(true) : XBool(false); }; // TODO: different default value if section is not defined
uint8_t dgetResizeAppleGpuBars() const { return parent.isDefined() && ResizeAppleGpuBars.isDefined() ? ResizeAppleGpuBars.value() : -1; };
int8_t dgetResizeAppleGpuBars() const { return parent.isDefined() && ResizeAppleGpuBars.isDefined() ? ResizeAppleGpuBars.value() : -1; };
OcBooterQuirks_Class(const Quirks_Class& _parent) : parent(_parent) {}
};
@ -153,7 +152,6 @@ public:
{"SetupVirtualMap", OcBooterQuirks.SetupVirtualMap},
{"SignalAppleOS", OcBooterQuirks.SignalAppleOS},
{"SyncRuntimePermissions", OcBooterQuirks.SyncRuntimePermissions},
{"ResizeAppleGpuBars", OcBooterQuirks.ResizeAppleGpuBars},
{"MmioWhitelist", MmioWhitelist},
{"FuzzyMatch", FuzzyMatch},
{"KernelCache", KernelCache},