public static bool SaveChanges(Rom rom, int course, string filePath, out string errorMessage) { //rom expansion give new banks for level data rom.ExpandTo1MB(); SaveBlocksToRom(rom, course); if (!SaveObjectsToRom(rom, course, out errorMessage)) { return(false); } rom.FixCRC(); rom.Save(filePath); return(true); }
public static bool SaveChanges(Rom rom, int course, string filePath, out string errorMessage) { //rom expansion give new banks for level data rom.ExpandTo1MB(); SaveBlocksToRom(rom, course); if(!SaveObjectsToRom(rom, course, out errorMessage)) { return false; } rom.FixCRC(); rom.Save(filePath); return true; }