public static void UpdateRomInfoToDB(RomInformation pRomInfo) { RomInformation lTempRomInformation = BQDB.GetGameInfo(pRomInfo.BasicInfo.Serial); if (lTempRomInformation != null) { if (MergeRomInfo(pRomInfo, lTempRomInformation)) { BQDB.UpdateGameInfo(pRomInfo.BasicInfo); } } else { BQDB.InsertRomInfo(pRomInfo.BasicInfo); } }
public static List <RomInformation> InitializeFirstRomList() { List <RomInformation> lAllRomInfo = new List <RomInformation>(); List <string> lRomSerialList = BQIO.GetAllRomFileFromLocal(); for (int i = 0; i < lRomSerialList.Count; i++) { RomInformation lRomInformation = BQDB.GetGameInfo(lRomSerialList[i]); if (lRomInformation != null) { lAllRomInfo.Add(lRomInformation); } } foreach (var romInfo in lAllRomInfo) { romInfo.ExpandInfo.LargeIcon = BQIO.GetRomLargeIco(romInfo); romInfo.ExpandInfo.SmallIcon = BQIO.GetRomSmallIco(romInfo); } return(lAllRomInfo); }