Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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;
        }