Esempio n. 1
0
    static AssemblyController()
    {
        //Debug.Log("Starting patching...");
        var patcher = new AssemblyPatcher();

        patcher.Run(Application.dataPath);
        //Debug.Log("Patching complete.");

        var           mcs_path = Path.Combine(Application.dataPath, "mcs.rsp");
        List <string> mcs;

        if (File.Exists(mcs_path))
        {
            mcs = File.ReadAllLines(mcs_path).ToList();
        }
        else
        {
            mcs = new List <string>();
        }

        if (HasOdinInspector())
        {
            AddDefineToMCS(ref mcs, OdinMCSDefine);
        }

        File.WriteAllLines(mcs_path, mcs.ToArray());
    }