예제 #1
0
파일: Command.cs 프로젝트: shengdie/mpvnet
        public static void show_prefs(string[] args)
        {
            string filepath = Folder.AppDataRoaming + "mpv\\mpv.conf";

            if (!File.Exists(filepath))
            {
                var dirPath = Folder.AppDataRoaming + "mpv\\";

                if (!Directory.Exists(dirPath))
                {
                    Directory.CreateDirectory(dirPath);
                }

                File.WriteAllText(filepath, "# https://mpv.io/manual/master/#configuration-files");
            }

            ProcessHelp.Start(OS.GetTextEditor(), '"' + filepath + '"');
        }
예제 #2
0
파일: Command.cs 프로젝트: shengdie/mpvnet
 public static void open_config_folder(string[] args)
 {
     ProcessHelp.Start(Folder.AppDataRoaming + "mpv");
 }
예제 #3
0
파일: Command.cs 프로젝트: shengdie/mpvnet
 public static void show_keys(string[] args)
 {
     ProcessHelp.Start(OS.GetTextEditor(), '"' + mpv.InputConfPath + '"');
 }
예제 #4
0
파일: Command.cs 프로젝트: joshuatee/mpvnet
 public static void show_prefs(string[] args)
 {
     CreateMpvConf();
     ProcessHelp.Start(OS.GetTextEditor(), '"' + mpv.mpvConfPath + '"');
 }