Fix a few bugs related to the cheat panel

This commit is contained in:
Gericom
2026-02-28 17:32:40 +01:00
parent 126b898ac4
commit 7f35d524ae
5 changed files with 25 additions and 6 deletions

View File

@@ -29,19 +29,16 @@ public:
View* CreateView() const override
{
LOG_DEBUG("CheatsAdapter::CreateView\n");
return new CheatListItemView(_vramOffsets, _materialColorScheme, _fontRepository);
}
void DestroyView(View* view) const override
{
LOG_DEBUG("CheatsAdapter::DestroyView\n");
delete (CheatListItemView*)view;
}
void BindView(View* view, int index) const override
{
LOG_DEBUG("CheatsAdapter::BindView\n");
auto listItemView = static_cast<CheatListItemView*>(view);
u32 numberOfCategories = 0;
auto categories = _cheatCategory->GetCategories(numberOfCategories);
@@ -60,7 +57,7 @@ public:
void ReleaseView(View* view, int index) const override
{
LOG_DEBUG("CheatsAdapter::ReleaseView\n");
// Nothing to do
}
private: