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

@@ -67,7 +67,7 @@ void CheatsBottomSheetView::Update()
_cheatListRecycler->SetPosition(LIST_X, _position.y + LIST_Y);
if (_viewModel->GetState() == CheatsViewModel::State::DisplayCheats)
{
if (_cheatsAdapter == nullptr)
if (_cheatsAdapter == nullptr && _objVramManager != nullptr)
{
_cheatsAdapter = new CheatsAdapter(
_viewModel->GetCurrentCheatCategory(), _materialColorScheme, _fontRepository, _vramOffsets);