NoDefaultProperties will be true by default, AddProperties to be deprecated

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2020-05-11 09:30:45 +03:00
parent 84c8e614e3
commit 84ebcbb439
8 changed files with 163 additions and 206 deletions

View File

@ -599,49 +599,6 @@
</dict>
<key>Devices</key>
<dict>
<key>#AddProperties</key>
<array>
<dict>
<key>Device</key>
<string>IntelGFX</string>
<key>Disabled</key>
<true/>
<key>Key</key>
<string>framebuffer-patch-enable</string>
<key>Value</key>
<data>AQAAAA==</data>
</dict>
<dict>
<key>Device</key>
<string>IntelGFX</string>
<key>Disabled</key>
<true/>
<key>Key</key>
<string>framebuffer-stolenmem</string>
<key>Value</key>
<data>AAAwAQ==</data>
</dict>
<dict>
<key>Device</key>
<string>IntelGFX</string>
<key>Disabled</key>
<true/>
<key>Key</key>
<string>framebuffer-fbmem</string>
<key>Value</key>
<data>AACQAA==</data>
</dict>
<dict>
<key>Device</key>
<string>IntelGFX</string>
<key>Disabled</key>
<true/>
<key>Key</key>
<string>framebuffer-unifiedmem</string>
<key>Value</key>
<data>AAAAgA==</data>
</dict>
</array>
<key>#FakeID</key>
<dict>
<key>#WIFI</key>

File diff suppressed because it is too large Load Diff

View File

@ -650,8 +650,8 @@ extern UINTN gEvent;
extern UINT16 gBacklightLevel;
extern BOOLEAN defDSM;
extern UINT16 dropDSM;
//extern BOOLEAN defDSM;
//extern UINT16 dropDSM;
extern TagPtr gConfigDict[];

View File

@ -317,7 +317,7 @@ radeon_card_info_t radeon_cards[] = {
{ 0x67CA, CHIP_FAMILY_ELLESMERE, "AMD Radeon Polaris 10", kNull },
{ 0x67CC, CHIP_FAMILY_ELLESMERE, "AMD Radeon Polaris 10", kNull },
{ 0x67CF, CHIP_FAMILY_ELLESMERE, "AMD Radeon Polaris 10", kNull },
{ 0x67DF, CHIP_FAMILY_ELLESMERE, "AMD Radeon RX 480", kBaladi },
{ 0x67DF, CHIP_FAMILY_ELLESMERE, "AMD Radeon RX 480/570/580", kBaladi },
// Polaris 11
{ 0x67E0, CHIP_FAMILY_BAFFIN, "AMD Radeon RX 460", kAcre },

View File

@ -149,7 +149,7 @@ VOID FillCardList(TagPtr CfgDict)
VideoPorts = (UINT16)GetPropertyInteger(prop2, VideoPorts);
prop2 = GetProperty(element, "LoadVBios");
if (prop2 != NULL && IsPropertyTrue (prop2)) {
if (prop2 != NULL && IsPropertyTrue(prop2)) {
LoadVBios = TRUE;
}

View File

@ -1099,7 +1099,7 @@ SymbolPtr FindSymbol(CHAR8 *tmpString, SymbolPtr *prevSymbol )
else return FALSE
*/
BOOLEAN
IsPropertyTrue (
IsPropertyTrue(
TagPtr Prop
)
{
@ -1114,7 +1114,7 @@ IsPropertyTrue (
else return FALSE
*/
BOOLEAN
IsPropertyFalse (
IsPropertyFalse(
TagPtr Prop
)
{

View File

@ -102,19 +102,19 @@ GetTagCount (
);
EFI_STATUS
GetElement (
GetElement(
TagPtr dict,
INTN id,
TagPtr *dict1
);
BOOLEAN
IsPropertyTrue (
IsPropertyTrue(
TagPtr Prop
);
BOOLEAN
IsPropertyFalse (
IsPropertyFalse(
TagPtr Prop
);

View File

@ -353,7 +353,7 @@ EFI_STATUS XTheme::ParseSVGXTheme(CONST CHAR8* buffer)
INTN Count = GetTagCount (Dict);
for (INTN i = 0; i < Count; i++) {
FILM *NewFilm = new FILM();
if (EFI_ERROR(GetElement (Dict, i, &Dict3))) {
if (EFI_ERROR(GetElement(Dict, i, &Dict3))) {
continue;
}
if (Dict3 == NULL) {
@ -406,7 +406,7 @@ EFI_STATUS XTheme::ParseSVGXTheme(CONST CHAR8* buffer)
NewFilm->NudgeY = GetPropertyInteger(Dict2, INITVALUE);
Dict2 = GetProperty(Dict3, "Once");
NewFilm->RunOnce = IsPropertyTrue (Dict2);
NewFilm->RunOnce = IsPropertyTrue(Dict2);
NewFilm->GetFrames(ThemeX); //used properties: ID, Path, NumFrames
ThemeX.Cinema.AddFilm(NewFilm);