コード例 #1
0
ファイル: Disc.cs プロジェクト: metalloidSmashes/BizHawk
        public static Disc FromCuePath(string cuePath, CueBinPrefs prefs)
        {
            var ret = new Disc();

            ret.FromCuePathInternal(cuePath, prefs);

            ret.Structure.Synthesize_TOCPointsFromSessions();
            ret.Synthesize_SubcodeFromStructure();
            ret.Synthesize_TOCRawFromStructure();

            //try loading SBI. make sure its done after the subcode is synthesized!
            string sbiPath = Path.ChangeExtension(cuePath, "sbi");

            if (File.Exists(sbiPath) && SBI_Format.QuickCheckISSBI(sbiPath))
            {
                var sbi = new SBI_Format().LoadSBIPath(sbiPath);
                ret.ApplySBI(sbi);
            }

            return(ret);
        }