SHUT. UP. THE. EXCEPTIONS. IN. TEMP. FILE. MANAGER.
This commit is contained in:
parent
fcace003fb
commit
753431c94a
|
@ -18,7 +18,7 @@
|
|||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\output\dll\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DefineConstants>TRACE;DEBUG;WINDOWS</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
|
@ -28,7 +28,7 @@
|
|||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\output\dll\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DefineConstants>TRACE;WINDOWS</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace BizHawk.Common
|
||||
{
|
||||
|
@ -41,7 +42,12 @@ namespace BizHawk.Common
|
|||
thread.Priority = System.Threading.ThreadPriority.Lowest;
|
||||
thread.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if WINDOWS
|
||||
[DllImport("kernel32.dll", EntryPoint = "DeleteFileW", SetLastError = true, CharSet = CharSet.Unicode, ExactSpelling = true)]
|
||||
static extern bool DeleteFileW([MarshalAs(UnmanagedType.LPWStr)]string lpFileName);
|
||||
#endif
|
||||
|
||||
static void ThreadProc()
|
||||
{
|
||||
|
@ -53,7 +59,12 @@ namespace BizHawk.Common
|
|||
{
|
||||
try
|
||||
{
|
||||
//SHUT. UP. THE. EXCEPTIONS.
|
||||
#if WINDOWS
|
||||
DeleteFileW(fi.FullName);
|
||||
#else
|
||||
fi.Delete();
|
||||
#endif
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue