mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-12 09:13:02 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
25 lines
511 B
C#
25 lines
511 B
C#
using System;
|
|
using Microsoft.Win32.SafeHandles;
|
|
|
|
namespace StormLibSharp.Native
|
|
{
|
|
internal sealed class MpqFileSafeHandle : SafeHandleZeroOrMinusOneIsInvalid
|
|
{
|
|
public MpqFileSafeHandle(IntPtr handle)
|
|
: base(true)
|
|
{
|
|
SetHandle(handle);
|
|
}
|
|
|
|
public MpqFileSafeHandle()
|
|
: base(true)
|
|
{
|
|
}
|
|
|
|
protected override bool ReleaseHandle()
|
|
{
|
|
return NativeMethods.SFileCloseFile(handle);
|
|
}
|
|
}
|
|
}
|