Easier expandability of debug menu (#6910)
This commit is contained in:
parent
4b944be820
commit
03d3245a39
1732
src/debug.c
1732
src/debug.c
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user