ms store issue fix
This commit is contained in:
@@ -106,7 +106,6 @@ mpv.net searches the config folder at:
|
|||||||
|
|
||||||
1. startup\portable_config
|
1. startup\portable_config
|
||||||
2. %APPDATA%\mpv.net (`C:\Users\%USERNAME%\AppData\Roaming\mpv.net`)
|
2. %APPDATA%\mpv.net (`C:\Users\%USERNAME%\AppData\Roaming\mpv.net`)
|
||||||
3. For Microsoft Store version (`%LOCALAPPDATA%\Packages\5664FrankSkare.mpv.net_0ta2kwwjvkgap\LocalCache\Roaming\mpv.net`)
|
|
||||||
|
|
||||||
mpv options are stored in the file mpv.conf,
|
mpv options are stored in the file mpv.conf,
|
||||||
mpv.net options are stored in the file mpvnet.conf,
|
mpv.net options are stored in the file mpvnet.conf,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
@@ -236,7 +237,22 @@ namespace mpvnet
|
|||||||
_ConfigFolder = Folder.AppData + "mpv.net";
|
_ConfigFolder = Folder.AppData + "mpv.net";
|
||||||
|
|
||||||
if (!Directory.Exists(_ConfigFolder))
|
if (!Directory.Exists(_ConfigFolder))
|
||||||
Directory.CreateDirectory(_ConfigFolder);
|
{
|
||||||
|
using (Process proc = new Process())
|
||||||
|
{
|
||||||
|
proc.StartInfo.UseShellExecute = false;
|
||||||
|
proc.StartInfo.CreateNoWindow = true;
|
||||||
|
proc.StartInfo.FileName = "powershell.exe";
|
||||||
|
proc.StartInfo.Arguments = $@"-Command New-Item -Path '{_ConfigFolder}' -ItemType Directory";
|
||||||
|
proc.Start();
|
||||||
|
proc.WaitForExit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Directory.Exists(_ConfigFolder))
|
||||||
|
Directory.CreateDirectory(_ConfigFolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
Directory.CreateDirectory(_ConfigFolder);
|
||||||
|
|
||||||
_ConfigFolder = _ConfigFolder.AddSep();
|
_ConfigFolder = _ConfigFolder.AddSep();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user