mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 17:16:57 +02:00
Change cheat implementation to show cheats in database order, fix some bugs
- AdvancedPaletteManager incorrectly handled negative y positions - FocusManager still had a pointer to a view that was destroyed in the cheats panel. After changing focus, memory got corrupted.
This commit is contained in:
@@ -25,9 +25,9 @@ CheatListItemView::CheatListItemView(const VramOffsets& vramOffsets,
|
||||
void CheatListItemView::Update()
|
||||
{
|
||||
_nameLabel.SetPosition(_position.x + NAME_LABEL_X, _position.y + NAME_LABEL_Y);
|
||||
if (_cheat != nullptr)
|
||||
if (_cheatEntry != nullptr && !_cheatEntry->IsCheatCategory())
|
||||
{
|
||||
_iconVramOffset = _cheat->GetIsCheatActive()
|
||||
_iconVramOffset = _cheatEntry->GetIsCheatActive()
|
||||
? _vramOffsets.checkboxCheckedIconVramOffset
|
||||
: _vramOffsets.checkboxUncheckedIconVramOffset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user