BizHawk/BizHawk.Common/Win32/MotWHack.cs

11 lines
374 B
C#

#nullable disable
namespace BizHawk.Common
{
/// <remarks>This code (and an import for <see cref="Win32Imports.DeleteFileW"/>) is duplicated in each executable project because it needs to be used before loading assemblies.</remarks>
public static class MotWHack
{
public static void RemoveMOTW(string path) => Win32Imports.DeleteFileW($"{path}:Zone.Identifier");
}
}