Skip to content

Commit

Permalink
Refactoring continues:
Browse files Browse the repository at this point in the history
* Initialize the file system early, prior to DD_StartupWorker
  Obviously no resource locator, virtual files, vdmaps, etc...,
  are present yet, however this allows the lower level functionality
  to be used a little sooner.
* Replaced filehandle_t with filelist_node_t - all file handles
  and both file lists (opened and loaded) now use the same set
  of objects and bookkeeping routines.
* Recycle used filelist nodes rather than allocating more.
* Block allocate filelist nodes in batches of 64 nodes.
* Fixed logic error resulting in files loaded into the auxiliary
  LumpDirectory were being marked as "startup" resources.
* Cleanup.
  • Loading branch information
danij-deng committed Sep 9, 2011
1 parent 4887ef0 commit c953432
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 155 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/dd_main.c
Expand Up @@ -1431,9 +1431,10 @@ int DD_Main(void)
}}
}

// Initialize the subsystems needed prior to entering busy mode for the first time.
Sys_Init();
F_Init();

// Initialize the subsystems needed prior to entering busy mode.
Fonts_Init();
if(!isDedicated)
{
Expand Down Expand Up @@ -1640,7 +1641,6 @@ static void DD_InitResourceSystem(void)
{
Con_Message("Initializing Resource subsystem...\n");

F_Init();
F_InitResourceLocator();
F_CreateNamespacesForFileResourcePaths();
F_InitVirtualDirectoryMappings();
Expand Down

0 comments on commit c953432

Please sign in to comment.