Commit Graph

207 Commits

Author SHA1 Message Date
jief
32fbf76326 Update BaseLib.h with macro BASE_LIST_FOR_EACH.
Introduce class apd (automatic pointer destruction)
Introduce MemoryTracker
Weak symbols in MemoryAllocationLib to be able to redefine them (see
MemoryTracker).
Embed LegacyOS instead of a pointer.
Fixed a lot of memory leaks.
2023-11-18 11:04:54 +01:00
jief
187400d0ae Why did I put the FreePool parameter as const. That's stupid !
You must never free a const pointer, by definition.
2023-11-11 15:57:02 +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
jief
8de61a22fb XIcon::GetBest now returns a reference, which save time and memory.
Added some const.
Remove GetIconP from XTheme.
2023-11-07 17:40:28 +01:00
jief
0130602198 Make GetSizeInBytes() in XImage public.
Change ParseXML first parameter to UINT8 to avoid casts.
2023-11-07 11:02:22 +01:00
jief
45795ccfcc Make ThemeX a pointer. 2023-11-06 21:53:57 +01:00
SergeySlice
7adb640a42 BlockSkywalk will be false by default
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2023-09-05 19:54:23 +03:00
Slice
2cb4b24a5d smbios automatic chooser
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-06-17 00:44:39 +03:00
Slice
420cf17421 new icon name os_sonoma
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-06-10 09:30:00 +03:00
Slice
5a6e6e363d Sonoma compatibility
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-06-05 22:23:36 +03:00
SergeySlice
4d3d93231b redirect selfdir in the case of pseudo MS
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-08-01 22:34:35 +03:00
SergeySlice
2c28c23fdd take Ventura into account
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-06-24 19:03:14 +03:00
jief666
1ea4700bd6 Replace EFI_GUID by a class EFI_GUID. 2022-04-26 00:55:56 +02:00
SergeySlice
80a7bd0b7a some style check
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-25 20:07:33 +03:00
jief666
be9b4c2d7f Remove outdated dead code (AddLoadOption and RemoveLoadOption). 2021-10-20 10:55:05 +02: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
SergeySlice
15199eea5d correct Monterey installer name
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-11 17:33:07 +03:00
SergeySlice
fd780172d3 Monterey compatibility
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-09 20:49:30 +03:00
jief666
0b0667997a Try to compile secure boot. Error in some openssl asm instructions. 2021-05-09 17:13:37 +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
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
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
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
975ac8f4fb Implement the possibility to cache XString size. Not activated.
Improve unicode_conversions.
Move strlen declaration to string.h.
2021-04-08 18:07:05 +03:00
jief666
04e288d53b Fix KPKernelPm KPAppleIntelCPUPM.
Fix bad "dead installer" detection.
Exclude a DisableDriversArray string if it's empty.
Rename back PatchVBiosBytesNew to PatchVBiosBytes.
Rename ConfigPlist to ConfigPlistClass.
Minor other renames to clean settings.h.
2021-03-27 21:53:30 +03:00
jief666
4a3bc612b8 Create settings section Graphics, RtVariables.
Mobe Turbo in GlobalConfig.
2021-03-26 12:43:15 +03:00
jief666
3b542ca711 Fix crash when sub menu has no entries. 2021-03-26 00:15:15 +03:00
jief666
65f8cc122d Created ABSTRACT_PATCH.
Renamed ForceKexts to ForceKextsToLoad.
Create a copy KPKernelPm, KPAppleIntelCPUPM as they can be modified by
NeedPMfix.
Delete gRemapSmBiosIsRequire, duplicate of Patches->KPDELLSMBIOS
Slight refactor of hex2bin and XMLDecode.
Memory leak in XBuffer.stealValueFrom().
Create XString.strsicat() and stealValueFrom with a size parameter.
2021-03-25 17:32:56 +03:00
jief666
59552d4e63 Remove loadOptions "Prefix" for custom tools. 2021-03-24 00:23:44 +03:00
jief666
ac7bd4308d Refactoring CutomLegacyEntries and CustomToolsEntries.
Refactor ACPIPatchedAML as a XObjArray<ACPI_PATCHED_AML>.
move Codepage in GlobalConfig.
2021-03-23 22:59:30 +03:00
jief666
ff4c90bc99 Finish refactoring of custom entries settings. 2021-03-23 11:32:57 +03:00
jief666
829fd040dc Create REFIT_MAINMENU_SCREEN class
Create CUSTOM_LOADER_SUBENTRY_SETTINGS, CUSTOM_LOADER_SUBENTRY_SETTINGS
and CUSTOM_LOADER_SUBENTRY.
Clean the sub entries config.plist fields.
Comment unused KernelAndKextPatcherInit, KernelAndKextsPatcherStart,
CheckForFakeSMC
Comment unused OSFLAG_WITHKEXTS and OSFLAG_CHECKFAKESMC
2021-03-22 15:40:01 +03:00
SergeySlice
c93da72714 move self initialisation up
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-21 17:08:47 +03:00
jief666
37a4b86a21 Fix custom entries not generated. 2021-03-20 22:22:38 +03:00
jief666
11ca2c36c6 Adapt compiler options for compilation as a macOs app.
Rename CustomBoot to CustomLogoType, CustomLogo to CustomLogoImage.
2021-03-20 17:29:34 +03:00
jief666
2a029bd298 SETTINGS_DATA refactoring. 2021-03-19 23:32:42 +03:00
jief666
3fb08d97f8 Continuation of refactor of settings. 2021-03-15 12:02:34 +03:00
SergeySlice
0dc0a93045 BigSur is not X, it is eleven
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-27 09:31:06 +03:00
SergeySlice
76bf6321a6 release compilation should never panic on bad user input, use DEBUG for testing
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-21 16:49:09 +03:00
jief666
8209394af9 Continuing to refactor SETTINGS_DATA. 2021-02-11 14:41:59 +03:00
jief666
75097bd304 Remove include <Platform.h> from headers. Keep them in sources. 2021-02-07 17:39:03 +03:00
jief666
1a02f530db Refactoring to allow Clover to be compiled as a macOs app. 2021-02-06 20:16:46 +03:00
jief666
333b6ce1ca Hide dead installer prebooter.
Do not hide installer if there is a main partition.
2021-02-04 17:04:31 +03:00
jief666
fa0bdcd181 Starting to refactor settings. 2021-02-02 12:02:21 +03:00
jief666
16c627596f Rename OSVersion to macOSVersion.
Fixed some icons ordering in main menu.
Fixed macOs version detection for custom entries.
Fixed main Big Sur partition appearing in menu.
Refactor IsValidGuidAsciiString.
2021-01-31 12:50:23 +03:00
SergeySlice
349e56a68a take into account custom entry may point to apfs partition
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-01 22:09:30 +03:00
SergeySlice
8649fc7631 fix errors
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-28 20:30:26 +03:00