示例#1
0
文件: db.cpp 项目: maxim-zhao/meka
// Initialize and load Meka database
bool            DB_Init(const char* filename, bool verbose)
{
    DB.entries                      = NULL;
    DB.entries_counter_format_old   = 0;
    DB.entries_counter_format_new   = 0;

    DB.current_entry = NULL;
    return DB_Load(filename, verbose);
}
示例#2
0
文件: db.c 项目: dafyddcrosby/meka
//-----------------------------------------------------------------------------
// DB_Init (void)
// Initialize Meka DB system
//-----------------------------------------------------------------------------
void            DB_Init (void)
{
    DB.entries                      = NULL;
    DB.entries_counter_format_old   = 0;
    DB.entries_counter_format_new   = 0;

    DB_CurrentEntry = NULL;
    DB_Load (g_Env.Paths.DataBaseFile);
}