void Map_LoadFile(const char *filename)
{
+ g_map.m_name = filename;
+
+ // refresh VFS to apply new pak filtering based on mapname
+ // needed for daemon DPK VFS
+ VFS_Refresh();
+
globalOutputStream() << "Loading map from " << filename << "\n";
ScopeDisableScreenUpdates disableScreenUpdates("Processing...", "Loading Map");
Map_Free();
}
Brush_toggleFormat(i);
- g_map.m_name = filename;
Map_UpdateTitle(g_map);
+
g_map.m_resource = GlobalReferenceCache().capture(g_map.m_name.c_str());
if (format) {
format->wrongFormat = false;
Map_StartPosition();
g_currentMap = &g_map;
-
- // refresh VFS to apply new pak filtering based on mapname
- // needed for daemon DPK VFS
- VFS_Refresh();
}
class Excluder {