示例#1
0
        private static void NewGameEnterCustomScene_Prefix()
        {
            if (!enabled)
            {
                return;
            }

            romanceMeta = new RomanceMeta();
        }
示例#2
0
        public static void Archive_LoadArchive_Postfix(string filePath)
        {
            if (!enabled)
            {
                return;
            }

            string metaFilePath = GetRomanceMetaFile(filePath);

            if (File.Exists(metaFilePath))
            {
                System.Xml.Serialization.XmlSerializer reader = new System.Xml.Serialization.XmlSerializer(typeof(RomanceMeta));
                StreamReader stream = new StreamReader(metaFilePath);
                romanceMeta = (RomanceMeta)reader.Deserialize(stream);
                stream.Close();
                Dbgl($"Loaded romance meta from {metaFilePath}");
            }
            else
            {
                romanceMeta = new RomanceMeta();
            }
        }