Commit Graph

358 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
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
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
87d5576923 Forgotten warning. 2023-11-11 07:20:58 +01:00
jief
c35c0c520c Renames in nano svg to follow conventions nsvg__
Remove global FrameTime and NumFrames.
2023-11-11 06:50:58 +01:00
jief
652c25fa69 Fix release compilation. 2023-11-08 14:56:43 +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
c1ce6aa406 Fix a memory waste in efiStrError().
Create displayFreeMemory().
Few renaming and details that doesn't change behavior.
2023-11-06 23:51:16 +01:00
jief
a107644cf2 nanosvg memory allocation tracer. 2023-11-06 22:46:13 +01:00
jief
45795ccfcc Make ThemeX a pointer. 2023-11-06 21:53:57 +01:00
Slice
ee2b479b19 revert ventura, cleanup
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-07-20 20:25:33 +03:00
Slice
5fb19df839 advance vector graphics support, update cesium theme
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-07-19 23:39:43 +03:00
Slice
9c3e5436ac some text formatting
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-07-16 19:45:53 +03:00
Slice
8f611a004f updated standard themes
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-06-28 20:05:58 +03:00
chris1111
bd7cb72ffa
Update XIcon.cpp 2023-06-10 09:41:50 -04:00
Slice
18e1640d92 switch to gcc-13
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-06-03 15:54:38 +03:00
SergeySlice
d54c3b9601 embed AppleImageCodec protocol
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-08-16 21:30:49 +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
6a722e3bba optimize style
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-02-18 22:00:04 +03:00
SergeySlice
b55b199188 using lambda
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-02-18 20:44:36 +03:00
SergeySlice
80a7bd0b7a some style check
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-25 20:07:33 +03:00
SergeySlice
d388e910fe wrong DEBUG usage, firmware version is 2
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-23 15:19:15 +03:00
SergeySlice
198a8e3d9b c++20 compatibility
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-10-03 20:33:03 +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
SergeySlice
fd780172d3 Monterey compatibility
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-09 20:49:30 +03:00
jief666
82ba60a90a Revert commit a9cb69 : remove workaround and fix operator = in XIcon. 2021-05-17 08:52:17 +03:00
SergeySlice
a9cb692f6e clean night icon usage bug
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-15 17:52:16 +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
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
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
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
jief666
d54fc63747 new folder PosixCompilation. Ressources to compile Clover as a mac
application, for unit tests.
2021-04-03 13:55:25 +03:00
jief666
69a47c5fac Create Properties, Arbitrary and AddProperties menu.
hex2bin returns the length when passing NULL for out parameter instead
of 0.
Buildid in OEMString for my own build.
Create TagTypes.h.
Rename AddProperties to AddPropertiesArray.
devprop_generate_string now returns a XString8.
Add cpy method in XBuffer.
Add strsicpy in XString.
2021-04-01 11:06:53 +03:00
SergeySlice
0035ed3c06 got updates for nanosvg from original project
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-28 10:58:19 +03:00
jief666
fba7032c06 Fix previous fix !
Fix some downcast warnings.
Fix menu appearing in text mode.
2021-03-26 08:32:26 +03:00
jief666
3252bf63e0 Rename to Language.
Create DSDT_Patch.Disabled.
2021-03-25 23:21:41 +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
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
2a029bd298 SETTINGS_DATA refactoring. 2021-03-19 23:32:42 +03:00
jief666
c698bfb932 Fix crash when no OpenRuntime.efi. 2021-03-19 10:41:24 +03:00