コード例 #1
0
        internal void Awake()
        {
            //Test setup.xml for validity, delete if it has junk data
            if (File.Exists("UserData/setup.xml"))
            {
                TestSetupXml();
            }

            //Create a setup.xml if there isn't one
            if (!File.Exists("UserData/setup.xml"))
            {
                CreateSetupXml();
            }

            Hooks.Apply();
        }
コード例 #2
0
        internal void Awake()
        {
            if (IncompatiblePluginDetector.AnyIncompatiblePlugins())
            {
                return;
            }

            //Test setup.xml for validity, delete if it has junk data
            if (File.Exists("UserData/setup.xml"))
            {
                TestSetupXml();
            }

            //Create a setup.xml if there isn't one
            if (!File.Exists("UserData/setup.xml"))
            {
                CreateSetupXml();
            }

            Hooks.Apply();
        }