Esempio n. 1
0
 protected void openBuildFolder(string path)
 {
     //DataBuildSettingProfile profile = getActiveProfile();
     //string path = profile.getBasePath();
     Debug.Log("opening folder : " + path);
     HalperNatives.os_openFolder(path);
 }
Esempio n. 2
0
    static protected void openReadme()
    {
        //string fullPath = Path.Combine(Environment.CurrentDirectory, "/YourSubDirectory/yourprogram.exe");
        string fullPath = Environment.CurrentDirectory + "/README.md";

        //Debug.Log(fullPath);

        if (!File.Exists(fullPath))
        {
            File.Create(fullPath).Close();
        }

        HalperNatives.startCmd(fullPath);
    }
Esempio n. 3
0
    static public void openGitFolderByName(string containsFolderName)
    {
        string fullPath = Environment.CurrentDirectory;

        //searcg for protoss git folder and open it
        string path = getFolderPathContainingGit(fullPath, containsFolderName);

        //Debug.Log("protoss : " + path);

        if (path.Length > 0)
        {
            Debug.Log("git with name " + containsFolderName + " found and opened");
            HalperNatives.startCmd("git", "--cd=" + path);
        }
        else
        {
            Debug.Log("no git folder with name : " + containsFolderName);
        }
    }
Esempio n. 4
0
    static protected void openGit()
    {
        //string fullPath = Path.Combine(Environment.CurrentDirectory, "/YourSubDirectory/yourprogram.exe");
        //string fullPath = getFolderPathContainingGit(Environment.CurrentDirectory);

        //start a git cmd within project context (../Assets)
        //Debug.Log("base root git folder : " + fullPath);

        HalperEditor.ClearConsole();

        string fullPath = Environment.CurrentDirectory;

        //Debug.Log("opening gits from "+ fullPath);

        if (pathHasGitFolder(fullPath))
        {
            Debug.Log("current path has git folder : opening");
            HalperNatives.startCmd("git", "--cd=" + fullPath);
        }

        //Debug.Log("seaching for other gits");
        openGitFolderByName("protoss");
    }
Esempio n. 5
0
 static public void osOpenDataPathFolder()
 {
     HalperNatives.os_openFolder(HalperNatives.getDataPath());
 }
Esempio n. 6
0
 static public void create()
 {
     uniq = ppGet(ppref_uniq, HalperNatives.generateUniqId());
 }