add mgba error if opening dexnav when DEXNAV_ENABLED if false

This commit is contained in:
ghoulslash 2024-10-18 22:02:04 -04:00
parent cb9f1f27a7
commit 99c3146288

View file

@ -2369,6 +2369,7 @@ void Task_OpenDexNavFromStartMenu(u8 taskId)
{
if (DEXNAV_ENABLED == FALSE)
{ // must have it enabled to enter
DebugPrintfLevel(MGBA_LOG_ERROR, "Dexnav was opened when DEXNAV_ENABLED config was disabled! Check include/config/dexnav.h");
DestroyTask(taskId);
}
else if (!gPaletteFade.active)