Fix crashing when trying to get NULL entry type
This commit is contained in:
parent
ddc3fb4e70
commit
60e23002f5
@ -384,13 +384,15 @@ void menuLoop() {
|
|||||||
drawEntry(me, entry_start_x + x, is_active);
|
drawEntry(me, entry_start_x + x, is_active);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (active_entry->type != ENTRY_TYPE_FOLDER) {
|
if(active_entry != NULL) {
|
||||||
drawImage(1280 - 126 - 30, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32);
|
if (active_entry->type != ENTRY_TYPE_FOLDER) {
|
||||||
DrawText(interuiregular18, 1280 - 90 - 30, 720 - 47, themeCurrent.textColor, textGetString(StrId_Actions_Launch));
|
drawImage(1280 - 126 - 30, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32);
|
||||||
}
|
DrawText(interuiregular18, 1280 - 90 - 30, 720 - 47, themeCurrent.textColor, textGetString(StrId_Actions_Launch));
|
||||||
else {
|
}
|
||||||
drawImage(1280 - 126 - 30, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32);
|
else {
|
||||||
DrawText(interuiregular18, 1280 - 90 - 30, 720 - 47, themeCurrent.textColor, textGetString(StrId_Actions_Open));
|
drawImage(1280 - 126 - 30, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32);
|
||||||
|
DrawText(interuiregular18, 1280 - 90 - 30, 720 - 47, themeCurrent.textColor, textGetString(StrId_Actions_Open));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
drawBackBtn(menu, false);
|
drawBackBtn(menu, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user