public static void Close() { if (_HighscoreDB != null) { _HighscoreDB.Close(); _HighscoreDB = null; } if (_CoverDB != null) { _CoverDB.Close(); _CoverDB = null; } if (_ResourceDB != null) { _ResourceDB.Close(); _ResourceDB = null; } }
public static bool Init() { _HighscoreDB = new CHighscoreDB(CConfig.FileHighscoreDB); _CoverDB = new CCoverDB(Path.Combine(CSettings.DataFolder, CSettings.FileNameCoverDB)); _ResourceDB = new CResourceDB(Path.Combine(CSettings.ProgramFolder, CSettings.FileNameCreditsRessourcesDB)); if (!_HighscoreDB.Init()) { CLog.LogError("Error initializing Highscore-DB", true, true); return(false); } if (!_CoverDB.Init()) { CLog.LogError("Error initializing Cover-DB", true, true); return(false); } if (!_ResourceDB.Init()) { CLog.LogError("Error initializing Credits-DB", true, true); return(false); } return(true); }