mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-15 02:48:12 +08:00
ignore tmp file delete exception
This commit is contained in:
@@ -49,7 +49,9 @@ public static class AppConfig {
|
|||||||
var copiedLogFilePath = Path.GetTempFileName();
|
var copiedLogFilePath = Path.GetTempFileName();
|
||||||
File.Copy(path, copiedLogFilePath, true);
|
File.Copy(path, copiedLogFilePath, true);
|
||||||
var content = File.ReadAllText(copiedLogFilePath);
|
var content = File.ReadAllText(copiedLogFilePath);
|
||||||
File.Delete(copiedLogFilePath);
|
try {
|
||||||
|
File.Delete(copiedLogFilePath);
|
||||||
|
} catch (Exception) { /* ignore */}
|
||||||
var matchResult = Regex.Match(content, @"(?m).:/.+(GenshinImpact_Data|YuanShen_Data)");
|
var matchResult = Regex.Match(content, @"(?m).:/.+(GenshinImpact_Data|YuanShen_Data)");
|
||||||
if (!matchResult.Success) {
|
if (!matchResult.Success) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ using System.Runtime.InteropServices;
|
|||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using YaeAchievement.AppCenterSDK;
|
using YaeAchievement.AppCenterSDK;
|
||||||
using YaeAchievement.res;
|
using YaeAchievement.res;
|
||||||
using YaeAchievement.res;
|
|
||||||
using YaeAchievement.Win32;
|
using YaeAchievement.Win32;
|
||||||
|
|
||||||
namespace YaeAchievement;
|
namespace YaeAchievement;
|
||||||
|
|||||||
Reference in New Issue
Block a user