ApplyMod() public method

public ApplyMod ( Everyplay.XCodeEditor.XCMod mod ) : void
mod Everyplay.XCodeEditor.XCMod
return void
Esempio n. 1
0
    private static void ProcessXCodeProject(string path)
    {
        Everyplay.XCodeEditor.XCProject project = new Everyplay.XCodeEditor.XCProject(path);

        string modsPath = System.IO.Path.Combine(path, "Everyplay");

        string[] files = System.IO.Directory.GetFiles(modsPath, "*.projmods", System.IO.SearchOption.AllDirectories);

        foreach (string file in files)
        {
            project.ApplyMod(Application.dataPath, file);
        }

        project.Save();
    }
Esempio n. 2
0
    private static void ProcessXCodeProject(string path)
    {
        Everyplay.XCodeEditor.XCProject project = new Everyplay.XCodeEditor.XCProject(path);

        string modsPath = System.IO.Path.Combine(path, "Everyplay");
        string[] files = System.IO.Directory.GetFiles(modsPath, "*.projmods", System.IO.SearchOption.AllDirectories);

        foreach(string file in files) {
            project.ApplyMod(Application.dataPath, file);
        }

        project.Save();
    }