void mod_table_init() { mod_table_reset(); // first parse the default table parse_mod_table(NULL); // if a mod.tbl exists read it if (cf_exists_full("game_settings.tbl", CF_TYPE_TABLES)) { parse_mod_table("game_settings.tbl"); } // parse any modular tables parse_modular_table("*-mod.tbm", parse_mod_table); }
void test::FSTestFixture::TearDown() { if (_initFlags & INIT_CFILE) { if (_initFlags & INIT_SHIPS) { ship_close(); } if (_initFlags & INIT_GRAPHICS) { if (_initFlags & INIT_FONTS) { font::close(); } io::mouse::CursorManager::shutdown(); bm_unload_all(); gr_close(); } if (_initFlags & INIT_MOD_TABLE) { // Reset mod settings again so that subsequent tests don't get broken mod_table_reset(); } cfile_close(); } timer_close(); lcl_close(); os_cleanup(); #ifndef NDEBUG outwnd_close(); #endif // although the comment in cmdline.cpp said this isn't needed, // Valgrind disagrees (quite possibly incorrectly), but this is just cleaner if (Cmdline_mod != NULL) { delete[] Cmdline_mod; Cmdline_mod = NULL; } }