fix up reuse: init menus in BeginScreen
This commit is contained in:
@@ -16,6 +16,11 @@ void ScreenOptionsMemoryCard::Init()
|
|||||||
{
|
{
|
||||||
ScreenOptions::Init();
|
ScreenOptions::Init();
|
||||||
|
|
||||||
|
this->SubscribeToMessage( Message_StorageDevicesChanged );
|
||||||
|
}
|
||||||
|
|
||||||
|
void ScreenOptionsMemoryCard::BeginScreen()
|
||||||
|
{
|
||||||
vector<OptionRowHandler*> vHands;
|
vector<OptionRowHandler*> vHands;
|
||||||
|
|
||||||
FOREACH_CONST( UsbStorageDevice, MEMCARDMAN->GetStorageDevices(), iter )
|
FOREACH_CONST( UsbStorageDevice, MEMCARDMAN->GetStorageDevices(), iter )
|
||||||
@@ -53,10 +58,7 @@ void ScreenOptionsMemoryCard::Init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
InitMenu( vHands );
|
InitMenu( vHands );
|
||||||
}
|
|
||||||
|
|
||||||
void ScreenOptionsMemoryCard::BeginScreen()
|
|
||||||
{
|
|
||||||
ScreenOptions::BeginScreen();
|
ScreenOptions::BeginScreen();
|
||||||
|
|
||||||
// select the last chosen memory card (if present)
|
// select the last chosen memory card (if present)
|
||||||
@@ -72,8 +74,6 @@ void ScreenOptionsMemoryCard::BeginScreen()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this->SubscribeToMessage( Message_StorageDevicesChanged );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenOptionsMemoryCard::HandleScreenMessage( const ScreenMessage SM )
|
void ScreenOptionsMemoryCard::HandleScreenMessage( const ScreenMessage SM )
|
||||||
|
|||||||
Reference in New Issue
Block a user