mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-25 23:59:42 +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.
23 lines
507 B
C#
23 lines
507 B
C#
using System;
|
|
using Microsoft.Win32.SafeHandles;
|
|
|
|
namespace StormLibSharp.Native
|
|
{
|
|
internal sealed class MpqArchiveSafeHandle : SafeHandleZeroOrMinusOneIsInvalid
|
|
{
|
|
public MpqArchiveSafeHandle(IntPtr handle)
|
|
: base(true)
|
|
{
|
|
SetHandle(handle);
|
|
}
|
|
|
|
public MpqArchiveSafeHandle()
|
|
: base(true) { }
|
|
|
|
protected override bool ReleaseHandle()
|
|
{
|
|
return NativeMethods.SFileCloseArchive(handle);
|
|
}
|
|
}
|
|
}
|