DiscUtils: Fat: Fix an issue with no long path name support in the upstream library

This commit is contained in:
Gustave Monce
2021-08-11 11:09:38 +02:00
parent 847ce0506d
commit efc81332f9
20 changed files with 4827 additions and 8 deletions
@@ -0,0 +1,23 @@
#if !NET40 && !NET45
using System.Text;
#endif
namespace DiscUtils.CoreCompat
{
internal static class EncodingHelper
{
private static bool _registered;
public static void RegisterEncodings()
{
if (_registered)
return;
_registered = true;
#if !NET40 && !NET45
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
#endif
}
}
}