1
0
forked from 0ad/0ad

written against new res.cpp reload interface

This was SVN commit r405.
This commit is contained in:
janwas 2004-06-06 23:59:57 +00:00
parent 092fa131ff
commit 6380ff781f

View File

@ -542,11 +542,7 @@ int main(int argc, char* argv[])
} }
/// new CConfig; res_mount("", "mods/official/", 0);
// vfs_mount("gui", "gui", 0);
vfs_mount("", "mods/official/", 0);
//// dir_add_watch("mods\\official", false);
#ifndef NO_GUI #ifndef NO_GUI
// GUI uses VFS, so this must come after VFS init. // GUI uses VFS, so this must come after VFS init.
@ -634,12 +630,9 @@ g_Console->RegisterFunc(Testing, "Testing");
const double TICK_TIME = 30e-3; // [s] const double TICK_TIME = 30e-3; // [s]
double time0 = get_time(); double time0 = get_time();
// g_Config.Update();
while(!quit) while(!quit)
{ {
//g_Config.Update(); res_reload_changed_files();
//// allow_reload();
// TODO: limiter in case simulation can't keep up? // TODO: limiter in case simulation can't keep up?
@ -685,7 +678,6 @@ g_Console->RegisterFunc(Testing, "Testing");
#endif #endif
delete &g_ScriptingHost; delete &g_ScriptingHost;
/// delete &g_Config;
delete &g_Pathfinder; delete &g_Pathfinder;
delete &g_EntityManager; delete &g_EntityManager;
delete &g_EntityTemplateCollection; delete &g_EntityTemplateCollection;