mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
Renamed SPrintf to SWPrintf for XStringW
This commit is contained in:
parent
6f64681239
commit
fbfc206a41
@ -21,7 +21,7 @@ int printf(const char* format, ...)
|
||||
|
||||
// AsciiPrint seems no to work with utf8 chars. We have to use Print instead
|
||||
va_start (va, format);
|
||||
stdio_static_wbuf.vSPrintf(format, va);
|
||||
stdio_static_wbuf.vSWPrintf(format, va);
|
||||
int ret = (int)Print(L"%s", stdio_static_wbuf.wc_str());
|
||||
va_end(va);
|
||||
return ret;
|
||||
|
@ -274,7 +274,7 @@ static void XStringW_transmitSPrintf(const wchar_t* buf, unsigned int nbchar, vo
|
||||
((XStringW*)(context))->StrnCat(buf, nbchar);
|
||||
}
|
||||
|
||||
void XStringW::vSPrintf(const char* format, va_list va)
|
||||
void XStringW::vSWPrintf(const char* format, va_list va)
|
||||
{
|
||||
SetLength(0);
|
||||
|
||||
@ -304,12 +304,12 @@ void XStringW::vSPrintf(const char* format, va_list va)
|
||||
// va_end(ps.args);
|
||||
//}
|
||||
|
||||
void XStringW::SPrintf(const char* format, ...)
|
||||
void XStringW::SWPrintf(const char* format, ...)
|
||||
{
|
||||
va_list va;
|
||||
|
||||
va_start (va, format);
|
||||
vSPrintf(format, va);
|
||||
vSWPrintf(format, va);
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
@ -549,7 +549,7 @@ XStringW SWPrintf(const char* format, ...)
|
||||
XStringW str;
|
||||
|
||||
va_start (va, format);
|
||||
str.vSPrintf(format, va);
|
||||
str.vSWPrintf(format, va);
|
||||
va_end(va);
|
||||
|
||||
return str;
|
||||
|
@ -115,11 +115,11 @@ public:
|
||||
void Insert(xsize pos, const XStringW& Str);
|
||||
|
||||
|
||||
void vSPrintf(const char* format, va_list va);
|
||||
void vSWPrintf(const char* format, va_list va);
|
||||
#ifndef _MSC_VER
|
||||
void SPrintf(const char* format, ...) __attribute__((__format__(__printf__, 2, 3)));
|
||||
void SWPrintf(const char* format, ...) __attribute__((__format__(__printf__, 2, 3)));
|
||||
#else
|
||||
void SPrintf(const char* format, ...);
|
||||
void SWPrintf(const char* format, ...);
|
||||
#endif // !__MSC_VER
|
||||
|
||||
|
||||
|
@ -99,7 +99,7 @@ int XStringW_tests()
|
||||
//printf("1=%lc\n", c2);
|
||||
//const char* s1 = "𐌾";
|
||||
XStringW str2;
|
||||
str2.SPrintf("%c", 'a'); // signle UTF8 ascii char
|
||||
str2.SWPrintf("%c", 'a'); // signle UTF8 ascii char
|
||||
if ( str2 != L"a" ) return 20;
|
||||
str2.takeValueFrom(L"ab"); // UTF16(32) string containing ascii char
|
||||
if ( str2 != L"ab" ) return 21;
|
||||
@ -115,14 +115,14 @@ int XStringW_tests()
|
||||
s[0] = 'Ň';
|
||||
s[1] = 0;
|
||||
|
||||
str2.SPrintf("%lc", c); // UTF16(32) char. (2 bytes in total if UTF16)
|
||||
str2.SWPrintf("%lc", c); // UTF16(32) char. (2 bytes in total if UTF16)
|
||||
if (str2 != s) return 22;
|
||||
str2.takeValueFrom("");
|
||||
if (str2.length() != 0) return 221;
|
||||
str2.takeValueFrom(s); // this is a UTF8 string 2 bytes long
|
||||
if (str2 != s) return 23;
|
||||
#else
|
||||
str2.SPrintf("%lc", L'Ň'); // signe UTF16(32) char. (2 bytes in total if UTF16)
|
||||
str2.SWPrintf("%lc", L'Ň'); // signe UTF16(32) char. (2 bytes in total if UTF16)
|
||||
if ( str2 != L"Ň" ) return 22;
|
||||
str2.takeValueFrom("");
|
||||
if (str2.length() != 0) return 221;
|
||||
@ -139,7 +139,7 @@ int XStringW_tests()
|
||||
#endif
|
||||
|
||||
#if __WCHAR_MAX__ > 0xFFFFu
|
||||
str2.SPrintf("%lc", L'𐌾'); // L'𐌾' // this char cannot convert to an UTF16 char. So it doesn't compile with -fshort-wchar
|
||||
str2.SWPrintf("%lc", L'𐌾'); // L'𐌾' // this char cannot convert to an UTF16 char. So it doesn't compile with -fshort-wchar
|
||||
if ( str2 != L"𐌾" ) return 30;
|
||||
#endif
|
||||
|
||||
|
@ -26,16 +26,16 @@ bool all_tests()
|
||||
|
||||
#ifdef JIEF_DEBUG
|
||||
#if defined(CLOVER_BUILD)
|
||||
ret = printlib_tests();
|
||||
if ( ret != 0 ) {
|
||||
DebugLog(2, "printlib_tests() failed at test %d\n", ret);
|
||||
all_ok = false;
|
||||
}
|
||||
ret = poolprint_tests();
|
||||
if ( ret != 0 ) {
|
||||
DebugLog(2, "poolprint_tests() failed at test %d\n", ret);
|
||||
all_ok = false;
|
||||
}
|
||||
// ret = printlib_tests();
|
||||
// if ( ret != 0 ) {
|
||||
// DebugLog(2, "printlib_tests() failed at test %d\n", ret);
|
||||
// all_ok = false;
|
||||
// }
|
||||
// ret = poolprint_tests();
|
||||
// if ( ret != 0 ) {
|
||||
// DebugLog(2, "poolprint_tests() failed at test %d\n", ret);
|
||||
// all_ok = false;
|
||||
// }
|
||||
#endif
|
||||
#endif
|
||||
#ifndef _MSC_VER
|
||||
|
@ -127,13 +127,13 @@ BOOLEAN AddLegacyEntry(IN CONST CHAR16 *FullTitle, IN CONST CHAR16 *LoaderTitle,
|
||||
if (ThemeX.BootCampStyle) {
|
||||
Entry->Title.takeValueFrom(LoaderTitle);
|
||||
} else {
|
||||
Entry->Title.SPrintf("Boot %ls from %ls", LoaderTitle, VolDesc);
|
||||
Entry->Title.SWPrintf("Boot %ls from %ls", LoaderTitle, VolDesc);
|
||||
}
|
||||
#else
|
||||
if (GlobalConfig.BootCampStyle) {
|
||||
Entry->Title.takeValueFrom(LoaderTitle);
|
||||
} else {
|
||||
Entry->Title.SPrintf("Boot %ls from %ls", LoaderTitle, VolDesc);
|
||||
Entry->Title.SWPrintf("Boot %ls from %ls", LoaderTitle, VolDesc);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -197,7 +197,7 @@ BOOLEAN AddLegacyEntry(IN CONST CHAR16 *FullTitle, IN CONST CHAR16 *LoaderTitle,
|
||||
// SubScreen = (__typeof__(SubScreen))AllocateZeroPool(sizeof(REFIT_MENU_SCREEN));
|
||||
SubScreen = new REFIT_MENU_SCREEN();
|
||||
#if USE_XTHEME
|
||||
SubScreen->Title.SPrintf("Boot Options for %ls on %ls", LoaderTitle, VolDesc);
|
||||
SubScreen->Title.SWPrintf("Boot Options for %ls on %ls", LoaderTitle, VolDesc);
|
||||
#else
|
||||
SubScreen->Title = PoolPrint(L"Boot Options for %s on %s", LoaderTitle, VolDesc);
|
||||
#endif
|
||||
@ -206,7 +206,7 @@ BOOLEAN AddLegacyEntry(IN CONST CHAR16 *FullTitle, IN CONST CHAR16 *LoaderTitle,
|
||||
// default entry
|
||||
// SubEntry = (__typeof__(SubEntry))AllocateZeroPool(sizeof(LEGACY_ENTRY));
|
||||
SubEntry = new LEGACY_ENTRY();
|
||||
SubEntry->Title.SPrintf("Boot %ls", LoaderTitle);
|
||||
SubEntry->Title.SWPrintf("Boot %ls", LoaderTitle);
|
||||
// SubEntry->Tag = TAG_LEGACY;
|
||||
SubEntry->Volume = Entry->Volume;
|
||||
SubEntry->DevicePathString = Entry->DevicePathString;
|
||||
|
@ -651,9 +651,9 @@ STATIC LOADER_ENTRY *CreateLoaderEntry(IN CONST CHAR16 *LoaderPath,
|
||||
}
|
||||
if ( Entry->Title.isEmpty() && Volume->VolLabel != NULL ) {
|
||||
if ( Volume->VolLabel[0] == L'#' ) {
|
||||
Entry->Title.SPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath), Volume->VolLabel+1);
|
||||
Entry->Title.SWPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath), Volume->VolLabel+1);
|
||||
}else{
|
||||
Entry->Title.SPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath), Volume->VolLabel);
|
||||
Entry->Title.SWPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath), Volume->VolLabel);
|
||||
}
|
||||
}
|
||||
#if USE_XTHEME
|
||||
@ -667,7 +667,7 @@ STATIC LOADER_ENTRY *CreateLoaderEntry(IN CONST CHAR16 *LoaderPath,
|
||||
if (BootCampStyle) {
|
||||
Entry->Title.takeValueFrom(((LoaderTitle != NULL) ? LoaderTitle : Basename(Volume->DevicePathString)));
|
||||
} else {
|
||||
Entry->Title.SPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath),
|
||||
Entry->Title.SWPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath),
|
||||
Basename(Volume->DevicePathString));
|
||||
}
|
||||
}
|
||||
@ -680,7 +680,7 @@ STATIC LOADER_ENTRY *CreateLoaderEntry(IN CONST CHAR16 *LoaderPath,
|
||||
Entry->Title.takeValueFrom((LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath));
|
||||
}
|
||||
} else {
|
||||
Entry->Title.SPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath),
|
||||
Entry->Title.SWPrintf("Boot %ls from %ls", (LoaderTitle != NULL) ? LoaderTitle : Basename(LoaderPath),
|
||||
Entry->VolName);
|
||||
}
|
||||
}
|
||||
@ -688,7 +688,7 @@ STATIC LOADER_ENTRY *CreateLoaderEntry(IN CONST CHAR16 *LoaderPath,
|
||||
// just an example that UI can show hibernated volume to the user
|
||||
// should be better to show it on entry image
|
||||
if (OSFLAG_ISSET(Entry->Flags, OSFLAG_HIBERNATED)) {
|
||||
Entry->Title.SPrintf("%ls (hibernated)", Entry->Title.s());
|
||||
Entry->Title.SWPrintf("%ls (hibernated)", Entry->Title.s());
|
||||
}
|
||||
|
||||
Entry->ShortcutLetter = (Hotkey == 0) ? ShortcutLetter : Hotkey;
|
||||
@ -783,7 +783,7 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry)
|
||||
// SubScreen = (__typeof__(SubScreen))AllocateZeroPool(sizeof(REFIT_MENU_SCREEN));
|
||||
SubScreen = new REFIT_MENU_SCREEN;
|
||||
#if USE_XTHEME
|
||||
SubScreen->Title.SPrintf("Options for %ls on %ls", Entry->Title.wc_str(), Entry->VolName);
|
||||
SubScreen->Title.SWPrintf("Options for %ls on %ls", Entry->Title.wc_str(), Entry->VolName);
|
||||
#else
|
||||
//very old mistake!!!
|
||||
SubScreen->Title = PoolPrint(L"Options for %s on %s", Entry->Title.s(), Entry->VolName);
|
||||
@ -908,7 +908,7 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry)
|
||||
// default entry
|
||||
SubEntry = Entry->getPartiallyDuplicatedEntry();
|
||||
if (SubEntry) {
|
||||
SubEntry->Title.SPrintf("Run %ls", FileName);
|
||||
SubEntry->Title.SWPrintf("Run %ls", FileName);
|
||||
SubScreen->AddMenuEntry(SubEntry, true);
|
||||
}
|
||||
|
||||
@ -916,10 +916,10 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry)
|
||||
if (SubEntry) {
|
||||
FreePool(SubEntry->LoadOptions);
|
||||
if (Quiet) {
|
||||
SubEntry->Title.SPrintf("%ls verbose", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls verbose", Entry->Title.s());
|
||||
SubEntry->LoadOptions = RemoveLoadOption(Entry->LoadOptions, L"quiet");
|
||||
} else {
|
||||
SubEntry->Title.SPrintf("%ls quiet", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls quiet", Entry->Title.s());
|
||||
SubEntry->LoadOptions = AddLoadOption(Entry->LoadOptions, L"quiet");
|
||||
}
|
||||
}
|
||||
@ -928,10 +928,10 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry)
|
||||
if (SubEntry) {
|
||||
FreePool(SubEntry->LoadOptions);
|
||||
if (WithSplash) {
|
||||
SubEntry->Title.SPrintf("%ls without splash", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls without splash", Entry->Title.s());
|
||||
SubEntry->LoadOptions = RemoveLoadOption(Entry->LoadOptions, L"splash");
|
||||
} else {
|
||||
SubEntry->Title.SPrintf("%ls with splash", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls with splash", Entry->Title.s());
|
||||
SubEntry->LoadOptions = AddLoadOption(Entry->LoadOptions, L"splash");
|
||||
}
|
||||
}
|
||||
@ -942,22 +942,22 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry)
|
||||
if (WithSplash) {
|
||||
if (Quiet) {
|
||||
TempOptions = RemoveLoadOption(Entry->LoadOptions, L"splash");
|
||||
SubEntry->Title.SPrintf("%ls verbose without splash", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls verbose without splash", Entry->Title.s());
|
||||
SubEntry->LoadOptions = RemoveLoadOption(TempOptions, L"quiet");
|
||||
FreePool(TempOptions);
|
||||
} else {
|
||||
TempOptions = RemoveLoadOption(Entry->LoadOptions, L"splash");
|
||||
SubEntry->Title.SPrintf("%ls quiet without splash", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls quiet without splash", Entry->Title.s());
|
||||
SubEntry->LoadOptions = AddLoadOption(TempOptions, L"quiet");
|
||||
FreePool(TempOptions);
|
||||
}
|
||||
} else if (Quiet) {
|
||||
TempOptions = RemoveLoadOption(Entry->LoadOptions, L"quiet");
|
||||
SubEntry->Title.SPrintf("%ls verbose with splash", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls verbose with splash", Entry->Title.s());
|
||||
SubEntry->LoadOptions = AddLoadOption(Entry->LoadOptions, L"splash");
|
||||
FreePool(TempOptions);
|
||||
} else {
|
||||
SubEntry->Title.SPrintf("%ls quiet with splash", Entry->Title.s());
|
||||
SubEntry->Title.SWPrintf("%ls quiet with splash", Entry->Title.s());
|
||||
SubEntry->LoadOptions = AddLoadOption(Entry->LoadOptions, L"quiet splash");
|
||||
}
|
||||
}
|
||||
@ -969,7 +969,7 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry)
|
||||
// default entry
|
||||
SubEntry = Entry->getPartiallyDuplicatedEntry();
|
||||
if (SubEntry) {
|
||||
SubEntry->Title.SPrintf("Run %ls", FileName);
|
||||
SubEntry->Title.SWPrintf("Run %ls", FileName);
|
||||
SubScreen->AddMenuEntry(SubEntry, true);
|
||||
}
|
||||
|
||||
@ -988,7 +988,7 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry)
|
||||
|
||||
SubEntry = Entry->getPartiallyDuplicatedEntry();
|
||||
if (SubEntry) {
|
||||
SubEntry->Title.SPrintf("Run %ls in text mode", FileName);
|
||||
SubEntry->Title.SWPrintf("Run %ls in text mode", FileName);
|
||||
SubEntry->Flags = OSFLAG_UNSET(SubEntry->Flags, OSFLAG_USEGRAPHICS);
|
||||
SubEntry->LoadOptions = PoolPrint(L"-v");
|
||||
SubEntry->LoaderType = OSTYPE_OTHER; // Sothor - Why are we using OSTYPE_OTHER here?
|
||||
@ -2025,7 +2025,7 @@ STATIC VOID AddCustomEntry(IN UINTN CustomIndex,
|
||||
REFIT_MENU_SCREEN *SubScreen = new REFIT_MENU_SCREEN;
|
||||
if (SubScreen) {
|
||||
#if USE_XTHEME
|
||||
SubScreen->Title.SPrintf("Boot Options for %ls on %ls", (Custom->Title != NULL) ? Custom->Title : CustomPath, Entry->VolName);
|
||||
SubScreen->Title.SWPrintf("Boot Options for %ls on %ls", (Custom->Title != NULL) ? Custom->Title : CustomPath, Entry->VolName);
|
||||
#else
|
||||
SubScreen->Title = PoolPrint(L"Boot Options for %s on %s", (Custom->Title != NULL) ? Custom->Title : CustomPath, Entry->VolName);
|
||||
#endif
|
||||
|
@ -99,7 +99,7 @@ STATIC BOOLEAN AddToolEntry(IN CONST CHAR16 *LoaderPath, IN CONST CHAR16 *FullTi
|
||||
if (FullTitle) {
|
||||
Entry->Title.takeValueFrom(FullTitle);
|
||||
} else {
|
||||
Entry->Title.SPrintf("Start %ls", LoaderTitle);
|
||||
Entry->Title.SWPrintf("Start %ls", LoaderTitle);
|
||||
}
|
||||
// Entry->Tag = TAG_TOOL;
|
||||
Entry->Row = 1;
|
||||
@ -178,21 +178,21 @@ STATIC VOID AddCloverEntry(IN CONST CHAR16 *LoaderPath, IN CONST CHAR16 *LoaderT
|
||||
//always add and always remove menu entries
|
||||
SubEntry = Entry->getPartiallyDuplicatedEntry();
|
||||
if (SubEntry) {
|
||||
SubEntry->Title.SPrintf("Add Clover boot options for all entries");
|
||||
SubEntry->Title.SWPrintf("Add Clover boot options for all entries");
|
||||
SubEntry->LoadOptions = EfiStrDuplicate(L"BO-ADD");
|
||||
SubScreen->AddMenuEntry(SubEntry, true);
|
||||
}
|
||||
|
||||
SubEntry = Entry->getPartiallyDuplicatedEntry();
|
||||
if (SubEntry) {
|
||||
SubEntry->Title.SPrintf("Remove all Clover boot options");
|
||||
SubEntry->Title.SWPrintf("Remove all Clover boot options");
|
||||
SubEntry->LoadOptions = EfiStrDuplicate(L"BO-REMOVE");
|
||||
SubScreen->AddMenuEntry(SubEntry, true);
|
||||
}
|
||||
|
||||
SubEntry = Entry->getPartiallyDuplicatedEntry();
|
||||
if (SubEntry) {
|
||||
SubEntry->Title.SPrintf("Print all UEFI boot options to log");
|
||||
SubEntry->Title.SWPrintf("Print all UEFI boot options to log");
|
||||
SubEntry->LoadOptions = EfiStrDuplicate(L"BO-PRINT");
|
||||
SubScreen->AddMenuEntry(SubEntry, true);
|
||||
}
|
||||
|
@ -1377,7 +1377,7 @@ VOID REFIT_MENU_SCREEN::AddMenuInfo_f(CONST char *format, ...)
|
||||
InputBootArgs = new REFIT_INFO_DIALOG;
|
||||
VA_LIST va;
|
||||
VA_START(va, format);
|
||||
InputBootArgs->Title.vSPrintf(format, va);
|
||||
InputBootArgs->Title.vSWPrintf(format, va);
|
||||
VA_END(va);
|
||||
InputBootArgs->AtClick = ActionLight;
|
||||
AddMenuEntry(InputBootArgs, true);
|
||||
@ -1446,7 +1446,7 @@ VOID AboutRefit(VOID)
|
||||
EntryCount instead of InfoLineCount. Lastline == return/back. Is necessary recheck screen res here?
|
||||
*/
|
||||
FreePool(AboutMenu.Entries[AboutMenu.Entries.size()-2].Title);
|
||||
AboutMenu.Entries[AboutMenu.Entries.size()-2].Title.SPrintf(" Screen Output: %ls", egScreenDescription());
|
||||
AboutMenu.Entries[AboutMenu.Entries.size()-2].Title.SWPrintf(" Screen Output: %ls", egScreenDescription());
|
||||
}
|
||||
|
||||
AboutMenu.RunMenu(NULL);
|
||||
@ -5573,12 +5573,12 @@ VOID ModifyTitles(REFIT_ABSTRACT_MENU_ENTRY *ChosenEntry)
|
||||
{
|
||||
if (ChosenEntry->SubScreen->ID == SCREEN_DSDT) {
|
||||
// UnicodeSPrint((CHAR16*)ChosenEntry->Title, 128, L"DSDT fix mask [0x%08x]->", gSettings.FixDsdt); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SPrintf("DSDT fix mask [0x%08x]->", gSettings.FixDsdt); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SWPrintf("DSDT fix mask [0x%08x]->", gSettings.FixDsdt); // TODO jief : cast to fix
|
||||
//MsgLog("@ESC: %ls\n", (*ChosenEntry)->Title);
|
||||
} else if (ChosenEntry->SubScreen->ID == SCREEN_CSR) {
|
||||
// CSR
|
||||
// UnicodeSPrint((CHAR16*)ChosenEntry->Title, 128, L"System Integrity Protection [0x%04x]->", gSettings.CsrActiveConfig); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SPrintf("System Integrity Protection [0x%04x]->", gSettings.CsrActiveConfig); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SWPrintf("System Integrity Protection [0x%04x]->", gSettings.CsrActiveConfig); // TODO jief : cast to fix
|
||||
// check for the right booter flag to allow the application
|
||||
// of the new System Integrity Protection configuration.
|
||||
if (gSettings.CsrActiveConfig != 0 && gSettings.BooterConfig == 0) {
|
||||
@ -5587,10 +5587,10 @@ VOID ModifyTitles(REFIT_ABSTRACT_MENU_ENTRY *ChosenEntry)
|
||||
|
||||
} else if (ChosenEntry->SubScreen->ID == SCREEN_BLC) {
|
||||
// UnicodeSPrint((CHAR16*)ChosenEntry->Title, 128, L"boot_args->flags [0x%04x]->", gSettings.BooterConfig); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SPrintf("boot_args->flags [0x%04x]->", gSettings.BooterConfig); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SWPrintf("boot_args->flags [0x%04x]->", gSettings.BooterConfig); // TODO jief : cast to fix
|
||||
} else if (ChosenEntry->SubScreen->ID == SCREEN_DSM) {
|
||||
// UnicodeSPrint((CHAR16*)ChosenEntry->Title, 128, L"Drop OEM _DSM [0x%04x]->", dropDSM); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SPrintf("Drop OEM _DSM [0x%04x]->", dropDSM); // TODO jief : cast to fix
|
||||
ChosenEntry->Title.SWPrintf("Drop OEM _DSM [0x%04x]->", dropDSM); // TODO jief : cast to fix
|
||||
}
|
||||
}
|
||||
|
||||
@ -5810,7 +5810,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuKextPatches()
|
||||
for (Index = 0; Index < NrKexts; Index++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf("%30s", KextPatchesMenu[Index].Label);
|
||||
InputBootArgs->Title.SWPrintf("%30s", KextPatchesMenu[Index].Label);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(KextPatchesMenu[Index].MenuItem);
|
||||
@ -5851,7 +5851,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuKextBlockInjection(CONST CHAR16* UniSysVer)
|
||||
}
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf("%ls, v.%ls", Kext->FileName, Kext->Version);
|
||||
InputBootArgs->Title.SWPrintf("%ls, v.%ls", Kext->FileName, Kext->Version);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(Kext->MenuItem);
|
||||
@ -5863,7 +5863,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuKextBlockInjection(CONST CHAR16* UniSysVer)
|
||||
while (plugInKext) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf(" |-- %ls, v.%ls", plugInKext->FileName, plugInKext->Version);
|
||||
InputBootArgs->Title.SWPrintf(" |-- %ls, v.%ls", plugInKext->FileName, plugInKext->Version);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(plugInKext->MenuItem);
|
||||
@ -6017,7 +6017,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuKernelPatches()
|
||||
for (Index = 0; Index < NrKernels; Index++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf("%30s", KernelPatchesMenu[Index].Label);
|
||||
InputBootArgs->Title.SWPrintf("%30s", KernelPatchesMenu[Index].Label);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(KernelPatchesMenu[Index].MenuItem);
|
||||
@ -6044,7 +6044,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuBootPatches()
|
||||
for (Index = 0; Index < NrBoots; Index++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf("%30s", BootPatchesMenu[Index].Label);
|
||||
InputBootArgs->Title.SWPrintf("%30s", BootPatchesMenu[Index].Label);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(BootPatchesMenu[Index].MenuItem);
|
||||
@ -6117,7 +6117,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuDropTables()
|
||||
// DropTable->Length, DropTable->Length);
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf("Drop \"%4.4s\" \"%8.8s\" %d", sign, OTID, DropTable->Length);
|
||||
InputBootArgs->Title.SWPrintf("Drop \"%4.4s\" \"%8.8s\" %d", sign, OTID, DropTable->Length);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(DropTable->MenuItem);
|
||||
@ -6138,7 +6138,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuDropTables()
|
||||
while (ACPIPatchedAMLTmp) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf("Drop \"%ls\"", ACPIPatchedAMLTmp->FileName);
|
||||
InputBootArgs->Title.SWPrintf("Drop \"%ls\"", ACPIPatchedAMLTmp->FileName);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(ACPIPatchedAMLTmp->MenuItem);
|
||||
@ -6361,7 +6361,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuAudioPort()
|
||||
for (i = 0; i < AudioNum; i++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_MENU_SWITCH;
|
||||
InputBootArgs->Title.SPrintf("%ls_%s", AudioList[i].Name, AudioOutputNames[AudioList[i].Device]);
|
||||
InputBootArgs->Title.SWPrintf("%ls_%s", AudioList[i].Name, AudioOutputNames[AudioList[i].Device]);
|
||||
// InputBootArgs->Tag = TAG_SWITCH_OLD;
|
||||
InputBootArgs->Row = i;
|
||||
InputBootArgs->Item = &InputItems[119];
|
||||
@ -6380,7 +6380,7 @@ VOID CreateMenuProps(REFIT_MENU_SCREEN *SubScreen, DEV_PROPERTY *Prop)
|
||||
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SPrintf(" key: %s", Prop->Key);
|
||||
InputBootArgs->Title.SWPrintf(" key: %s", Prop->Key);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
// InputBootArgs->Item = ADDRESS_OF(DEV_PROPERTY, Prop, INPUT_ITEM, MenuItem);
|
||||
|
Loading…
Reference in New Issue
Block a user