mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Add new shared pointer and make use of it
This commit is contained in:
@@ -16,8 +16,8 @@ public:
|
||||
|
||||
void SetGraphics(const ChipView::VramToken& chipVramToken)
|
||||
{
|
||||
_cheatsChip.SetGraphics(chipVramToken);
|
||||
_favoriteChip.SetGraphics(chipVramToken);
|
||||
_cheatsChip->SetGraphics(chipVramToken);
|
||||
_favoriteChip->SetGraphics(chipVramToken);
|
||||
}
|
||||
|
||||
void InitVram(const VramContext& vramContext) override;
|
||||
@@ -27,10 +27,10 @@ public:
|
||||
|
||||
void Focus(FocusManager& focusManager) override
|
||||
{
|
||||
focusManager.Focus(&_cheatsChip);
|
||||
focusManager.Focus(_cheatsChip);
|
||||
}
|
||||
|
||||
View* MoveFocus(View* currentFocus, FocusMoveDirection direction, View* source) override;
|
||||
SharedPtr<View> MoveFocus(const SharedPtr<View>& currentFocus, FocusMoveDirection direction, View* source) override;
|
||||
|
||||
bool HandleInput(const InputProvider& inputProvider, FocusManager& focusManager) override;
|
||||
|
||||
@@ -38,6 +38,6 @@ private:
|
||||
IRomBrowserController* _romBrowserController;
|
||||
u32 _smallHeartIconVramOffset;
|
||||
u32 _smallHeartIconFilledVramOffset;
|
||||
ChipView _cheatsChip;
|
||||
ChipView _favoriteChip;
|
||||
SharedPtr<ChipView> _cheatsChip;
|
||||
SharedPtr<ChipView> _favoriteChip;
|
||||
};
|
||||
Reference in New Issue
Block a user