mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
ReinitRefitLib after Starting an efi image.
This commit is contained in:
parent
53645a4240
commit
2bc776d63e
@ -48,7 +48,7 @@ public:
|
||||
EFI_STATUS reInitialize();
|
||||
void closeHandle();
|
||||
|
||||
bool isInitialized() const { return m_SelfImageHandle != NULL; }
|
||||
bool isInitialized() const { return m_CloverDir != NULL; }
|
||||
|
||||
EFI_HANDLE getSelfImageHandle() { return m_SelfImageHandle; }
|
||||
const EFI_LOADED_IMAGE& getSelfLoadedImage() { return *m_SelfLoadedImage; }
|
||||
|
@ -3333,6 +3333,10 @@ GetListOfThemes ()
|
||||
DbgHeader("GetListOfThemes");
|
||||
|
||||
ThemeNameArray.setEmpty();
|
||||
if ( !self.themesDirExists() ) {
|
||||
DBG("No theme dir was discovered\n");
|
||||
return;
|
||||
}
|
||||
DirIterOpen(&self.getThemesDir(), NULL, &DirIter);
|
||||
while (DirIterNext(&DirIter, 1, L"*", &DirEntry)) {
|
||||
if (DirEntry->FileName[0] == '.') {
|
||||
|
@ -270,6 +270,7 @@ static EFI_STATUS StartEFILoadedImage(IN EFI_HANDLE ChildImageHandle,
|
||||
|
||||
//PauseForKey(L"Returned from StartImage\n");
|
||||
|
||||
ReinitRefitLib();
|
||||
// control returns here when the child image calls Exit()
|
||||
if (ImageTitle.notEmpty()) {
|
||||
snwprintf(ErrorInfo, 512, "returned from %ls", ImageTitle.s());
|
||||
|
Loading…
Reference in New Issue
Block a user