Show error if trying to run FF out of an archive (temp folder)

+ other UI improvements
This commit is contained in:
N00MKRAD
2021-02-18 14:30:56 +01:00
parent 034794d5e5
commit f491b6f6f9
9 changed files with 29 additions and 40 deletions

View File

@@ -27,6 +27,16 @@ namespace Flowframes.IO
return $"{frameOrderPrefix}-chunk-{from}-{to}.ini";
}
public static string GetExe()
{
return System.Reflection.Assembly.GetEntryAssembly().GetName().CodeBase.Replace("file:///", "");
}
public static string GetExeDir()
{
return AppDomain.CurrentDomain.BaseDirectory;
}
public static string GetVerPath()
{
return Path.Combine(GetDataPath(), "ver.ini");
@@ -34,7 +44,7 @@ namespace Flowframes.IO
public static string GetDataPath ()
{
string path = Path.Combine(IOUtils.GetExeDir(), "FlowframesData");
string path = Path.Combine(GetExeDir(), "FlowframesData");
Directory.CreateDirectory(path);
return path;
}