Exemplo 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);
        }
Exemplo 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;
        }