Easier expandability of debug menu (#6910)

This commit is contained in:
Eduardo Quezada 2025-06-25 09:57:41 -04:00 committed by GitHub
parent 4b944be820
commit 03d3245a39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 419 additions and 1343 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1186,3 +1186,33 @@ bool32 IsWeatherAlphaBlend(void)
|| gWeatherPtr->currWeather == WEATHER_UNDERWATER_BUBBLES
|| gWeatherPtr->currWeather == WEATHER_UNDERWATER);
}
static const u8 sWeatherNames[WEATHER_COUNT][24] = {
[WEATHER_NONE] = _("NONE"),
[WEATHER_SUNNY_CLOUDS] = _("SUNNY CLOUDS"),
[WEATHER_SUNNY] = _("SUNNY"),
[WEATHER_RAIN] = _("RAIN"),
[WEATHER_SNOW] = _("SNOW"),
[WEATHER_RAIN_THUNDERSTORM] = _("RAIN THUNDERSTORM"),
[WEATHER_FOG_HORIZONTAL] = _("FOG HORIZONTAL"),
[WEATHER_VOLCANIC_ASH] = _("VOLCANIC ASH"),
[WEATHER_SANDSTORM] = _("SANDSTORM"),
[WEATHER_FOG_DIAGONAL] = _("FOG DIAGONAL"),
[WEATHER_UNDERWATER] = _("UNDERWATER"),
[WEATHER_SHADE] = _("SHADE"),
[WEATHER_DROUGHT] = _("DROUGHT"),
[WEATHER_DOWNPOUR] = _("DOWNPOUR"),
[WEATHER_UNDERWATER_BUBBLES] = _("UNDERWATER BUBBLES"),
[WEATHER_ABNORMAL] = _("ABNORMAL(NOT WORKING)"),
[WEATHER_ROUTE119_CYCLE] = _("ROUTE119 CYCLE"),
[WEATHER_ROUTE123_CYCLE] = _("ROUTE123 CYCLE"),
[WEATHER_FOG] = _("FOG"),
};
static const u8 sDebugText_WeatherNotDefined[] = _("NOT DEFINED!!!");
const u8 *GetWeatherName(u32 weatherId)
{
if (sWeatherNames[weatherId][0] != 0)
return sWeatherNames[weatherId];
return sDebugText_WeatherNotDefined;
}