Commit Graph

129 Commits

Author SHA1 Message Date
jief666
7e105c98da Add "FirstAvailable" option for DefaultVolume. 2024-01-19 04:14:17 +01:00
jief666
53de33a8f4 Set permission 0644 for files in rEFIt_UEFI. No changes of content. 2024-01-05 16:16:38 +01:00
jief666
bd46eeffe9 Add ForceAquantiaEthernet quirk. 2024-01-04 11:37:47 +01:00
jief
a9b0654a59 Improve XString forgetDataWithoutFreeing() to avoid freeing a literal.
Improve XString stealValueFrom to avoid a memory leak
Change GlobalConfig.ACPIDropTables to a XObjArray.
2023-11-12 03:48:29 +01:00
jief
42cece9885 Fix nanosvg leaks.
Move global variable textfaces in XTheme.
Move global variable fontsDB in XTheme.
Remove XTheme member SVGParser. SVGParser is deleted just after use.
Remove XTheme members ImageSVG and ImageSVGnight. All images are
rasterized at load, so no need to keep that.
Remove XIcon setFilled because XIcon knows if it's filled or not by
checking Image & ImageNight
2023-11-08 14:35:22 +01:00
Slice
2d142970c0 make FakeCPUID from SMBIOS
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-06-22 22:50:58 +03:00
Slice
2cb4b24a5d smbios automatic chooser
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-06-17 00:44:39 +03:00
SergeySlice
3238813474 clean codes for better readability
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2023-06-11 22:08:12 +03:00
Slice
e0bde75175 restrict str_version conversion to 3 groups
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-05-31 00:17:19 +03:00
Сергей Исаков
e56b549dca implement tscsync
Signed-off-by: Сергей Исаков <slice@Sergejs-Mac-Pro.local>
2022-10-06 22:14:54 +03:00
SergeySlice
d5a69286c7 use count for dsdt patches
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-08-17 13:58:30 +03:00
SergeySlice
04e42c09e7 restores old smUUID behavior
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-05-03 06:38:54 +03:00
jief666
1ea4700bd6 Replace EFI_GUID by a class EFI_GUID. 2022-04-26 00:55:56 +02:00
jief666
562ffe5ff0 Add Skip value in ACPI DSDT patches. 2022-04-14 18:07:46 +02:00
SergeySlice
7945747d83 implement ProvideCurrentCpuInfo
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-28 21:47:15 +03:00
SergeySlice
1ba1ba6d6c implement ForceOcWriteFlash
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-11-11 21:58:28 +03:00
SergeySlice
b624e4d1e9 exclude doubles
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-10-30 11:55:55 +03:00
SergeySlice
aebddff13d corrections for previous commit
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-10-30 11:37:40 +03:00
SergeySlice
9ce3a2607b Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-10-30 11:21:44 +03:00
SergeySlice
05615c24f4 make a bridge to new quirks
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-10-30 11:21:39 +03:00
jief666
c26dec1e78 ResizeAppleGpuBars. 2021-10-30 06:39:10 +02:00
jief666
891edf8a3c Cleaning Settings.h 2021-10-27 19:37:54 +02:00
jief666
710b2dcee5 Allow SmbiosDictClass to work without ProductName defined (using a
defaultMacModel member that has to be assigned before).
Move BiosVersion, BiosReleaseDate and EfiVersion checks in
SmbiosDictClass. Create warnings for incorrect values.
Rename MaxMachineType to MaxMacModel.
Remove GlobalConfig->BiosVersionUsed, ReleaseDateUsed and
EfiVersionUsed.
2021-10-19 19:57:27 +02:00
jief666
cee098d1e6 Rename MACHINE_TYPES enum to MacModel.
Rename PLATFORMDATA array to ApplePlatformDataArrayClass.
Refactor so enum MacModel doesn't have to be in the same order as
ApplePlatformDataArrayClass.
Create static_assert that guarantee that all model has platform data.
2021-10-18 21:06:19 +02:00
SergeySlice
ec1f8a6a4a implemented hw.target
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-10-08 22:49:07 +03:00
jief666
542b812276 Refactor array of RamSlotInfo and RAM_SLOT_INFO to avoid allocating
empty slots.
Remove the InUse member.
Remove mHandle17, mInstalled, mEnabled global.
Create numeric_limits.
2021-10-02 20:44:16 +03:00
jief666
83593a5ab9 Convert bool to XBool. 2021-09-28 16:54:31 +03:00
jief666
2c829b66cd Create XBool to avoid nasty side effect when assigning int to bool. 2021-09-28 11:28:45 +03:00
jief666
c6b08f89ba Change DsdtsList from statically allocated to XStringWArray. 2021-09-27 10:18:52 +03:00
jief666
8134f37bde Change ConfigsList from statically allocated to XStringWArray. 2021-09-27 10:05:11 +03:00
jief666
e8a9e4af4f
Merge pull request #446 from z3DD3r/master
Add ExtendBTFeatureFlags to Quirks
2021-09-25 14:45:42 +03:00
SergeySlice
f0a20247e9 implement ExtendedFeatures
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-09-25 14:33:16 +03:00
jief666
537884c7bd Remove CPU/Latency. Warning if CPU/Latency is used. 2021-09-25 13:57:07 +03:00
jief666
c9794ad85d Create union for uint32 signature with SignatureAs4Char. Useful in gdb. 2021-09-25 13:11:54 +03:00
z3DD3r
81d1808c0a Add ExtendBTFeatureFlags to Quirks 2021-09-25 11:51:37 +03:00
SergeySlice
f424a77c25 repaired taking C3Latency from config
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-23 21:24:46 +03:00
jief666
bf74520cef Deprecate FIX_HEADERS. 2021-05-19 15:11:21 +03:00
jief666
9906261e23 Fix visual studio compilation.
Fix some warnings.
Rename panic_ask to log_technical_bug.
2021-05-08 12:34:17 +03:00
jief666
54bddb2fa9 Fix wrong access to SlotDevices in FixAirport.
Send panic message to log.
2021-05-06 09:23:07 +03:00
jief666
d52803e7cd DO NOT explicitly call default ctor with new because of clang bug. 2021-05-05 20:10:10 +03:00
jief666
0223567648 New parser XML. New ConfigManager. A lot of refactoring... 2021-04-28 21:30:34 +03:00
jief666
cc3c8fe0a7 Fix bug : it was ignoring legacy with PBR, MBR and CD.
Uncomment eComStation, BeOS, ZETA and Haiku legacy boot sector
detection.
Return unknown icon instead of dummy.
Improve legacy entries title when _LoaderTitle is empty.
Create log_technical_bug(). Temporary redirected to panic.
Hardened egLoadFile().
Hardened SelfOem.
Copy ctor in XStringArray.
Improve qemu launch scripts.
2021-04-23 15:20:48 +03:00
jief666
541762427a Real fix to XCode optimization bug. 2021-04-16 12:55:51 +03:00
jief666
23b39364d2 Fix a wrong cast in XImage.
Fix bug about padding StartMask, MaskFind, Replace, MaskReplace
Move IgPlatform in GlobalConfig.
Improve panic message.
Fix bug in XMLDecode.
2021-04-12 15:11:01 +03:00
SergeySlice
1d6a7ae9d3 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-04-11 13:53:39 +03:00
SergeySlice
4904c3dc8e default Tmezone is FF, not -1
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-11 13:53:21 +03:00
jief666
7babc6fe9b Do not use OC quirks struct anymore in settings.
Fix Disabled property in Smbios/Block config.
Move flagstate in GlobalConfig.
Remove gSettings.Smbios.REV, ECPI, RBr and RPlt.
Create getRBr() and getRPlt().
Operator == and isEqual in XArray, XObjArray, SETTINGS_DATA.
Rename equal to isEqual in XString and XStringArray.
Operator == in INPUT_ITEM, undefinable, ABSTRACT_PATCH (and derived) and
RAM_SLOT_INFO class.
Clean b64cdecode.h.
2021-04-11 08:18:52 +03:00
jief666
6545450f02 Ignore empty if device property value is empty.
Ignore commented device properties in FillDevicePropertiesOld.
Rename Name to acpiName.
2021-04-05 15:00:17 +03:00
jief666
946a6428b5 Remove the trim to the first space for PartNo, Vendor, SerialNo.
Refactor ACPI_NAME_LIST as XString8Array.
Create ACPI_RENAME_DEVICE and ACPI_NAME to replace ACPI_NAME_LIST.
Change RAM_SLOT_INFO and MEM_STRUCTURE into class.
Improve XObjArray::RemoveWithoutFreeingAtIndex.
Create XStringArray::ExtractFromPos.
Move CheckFatalError and CheckError to BasicIO.
2021-04-05 11:57:55 +03:00
jief666
6ff5bab8a5 Create section Smbios and BootGraphics.
Move OptionsBits and FlagsBits in GlobalConfig.
Move OEMVendor, OEMProduct, OEMBoard in GlobalConfig.
Move KernelPatchesAllowed, KextPatchesAllowed, EnabledCores and
BlockKexts in GlobalConfig.
Create RomVersionUsed, EfiVersionUsed and ReleaseDateUsed in
GlobalConfig.
Move gFwFeatures, gFwFeaturesMask, gPlatformFeature, SlotDevices in
Smbios section.
Move UserInUse, UserChannels and User from gRAM to Smbios settings
section.
Rename enum LANGUAGES to LanguageCode.
2021-04-03 17:42:49 +03:00