Fix mod zone priority

This commit is contained in:
fed 2023-03-10 17:41:45 +01:00
parent 362674812a
commit 8ee6670fd2

View File

@ -168,8 +168,8 @@ namespace fastfiles
std::vector<game::XZoneInfo> zones; std::vector<game::XZoneInfo> zones;
try_add_zone(zones, allocator, "h2_mod_pre_gfx", true); try_add_zone(zones, allocator, "h2_mod_pre_gfx", true);
add_mod_zones(zones, allocator, mods::zone_priority::pre_gfx);
push_zones(zones, zone_info, zone_count); push_zones(zones, zone_info, zone_count);
add_mod_zones(zones, allocator, mods::zone_priority::pre_gfx);
game::DB_LoadXAssets(zones.data(), static_cast<int>(zones.size()), sync_mode); game::DB_LoadXAssets(zones.data(), static_cast<int>(zones.size()), sync_mode);
fonts::load_font_zones(); fonts::load_font_zones();
@ -186,7 +186,6 @@ namespace fastfiles
std::vector<game::XZoneInfo> zones; std::vector<game::XZoneInfo> zones;
try_add_zone(zones, allocator, "h2_mod_common", true); try_add_zone(zones, allocator, "h2_mod_common", true);
add_mod_zones(zones, allocator, mods::zone_priority::post_gfx);
for (auto i = 0u; i < zone_count; i++) for (auto i = 0u; i < zone_count; i++)
{ {
@ -195,6 +194,7 @@ namespace fastfiles
if (zone_info[i].name == "code_post_gfx"s) if (zone_info[i].name == "code_post_gfx"s)
{ {
try_add_zone(zones, allocator, "h2_mod_ui", true); try_add_zone(zones, allocator, "h2_mod_ui", true);
add_mod_zones(zones, allocator, mods::zone_priority::post_gfx);
} }
} }