Added COMPOUND_STRINGs to region_map_entries.h (#7669)

This commit is contained in:
Frank DeBlasio 2025-09-20 05:18:55 -04:00 committed by GitHub
parent 6a4f923904
commit db3405dc3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,21 +2,6 @@
#ifndef GUARD_DATA_REGION_MAP_REGION_MAP_ENTRIES_H
#define GUARD_DATA_REGION_MAP_REGION_MAP_ENTRIES_H
## for map_section in map_sections
{% if existsIn(map_section, "name") and isEmptyString(getVar(map_section.name)) and not existsIn(map_section, "name_clone") %}{{ setVar(map_section.name, map_section.id) }}{% endif %}
## endfor
## for map_section in map_sections
{% if existsIn(map_section, "name") %}
{% if getVar(map_section.name) == map_section.id %}
static const u8 sMapName_{{ cleanString(map_section.name) }}[] = _("{{ map_section.name }}");
{% endif %}
{% if existsIn(map_section, "name_clone") %}
static const u8 sMapName_{{ cleanString(map_section.name) }}_Clone[] = _("{{ map_section.name }}");
{% endif %}
{% endif %}
## endfor
const struct RegionMapLocation gRegionMapEntries[] = {
## for map_section in map_sections
[{{ map_section.id }}] = {
@ -41,7 +26,7 @@ const struct RegionMapLocation gRegionMapEntries[] = {
.height = 1,
{% endif %}
{% if existsIn(map_section, "name") %}
.name = sMapName_{{ cleanString(map_section.name) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %},
.name = COMPOUND_STRING("{{ map_section.name }}"),
{% else %}
.name = (const u8[])_(""),
{% endif %}