修复自动保存路径bug

This commit is contained in:
XAS-712 2019-02-10 23:29:42 +08:00
parent ceeaac8a0e
commit 0baef138f0

View File

@ -51,7 +51,8 @@ namespace MifareOneTool
{
if (File.Exists(omfd) && new FileInfo(omfd).Length > 1)
{
string filename = lastuid + "_" + DateTime.Now.ToString() + ".mfd";
Directory.CreateDirectory("auto_keys");
string filename = "auto_keys\\" + lastuid + "_" + DateTime.Now.ToString() + ".mfd";
if (File.Exists(filename))
{
File.Delete(filename);