예제 #1
0
파일: Level.cs 프로젝트: zipplet/WL1-Editor
        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);
        }
예제 #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;
        }