Updated visibility level for internal use classes
parent
355e6ff398
commit
ca5f22459e
|
@ -4,7 +4,7 @@ namespace SharpPhysFS
|
||||||
{
|
{
|
||||||
public partial class PhysFS
|
public partial class PhysFS
|
||||||
{
|
{
|
||||||
public static class LowLevel
|
internal static class LowLevel
|
||||||
{
|
{
|
||||||
public static IntPtr OpenWrite(string filename, PhysFS physFS)
|
public static IntPtr OpenWrite(string filename, PhysFS physFS)
|
||||||
{
|
{
|
||||||
|
|
|
@ -604,9 +604,8 @@ namespace SharpPhysFS
|
||||||
c(obj, s);
|
c(obj, s);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete("The non-generic variant of GetCdRomDirsCallback is meant for internal use only. Consider using one of the generic alternatives.")]
|
void GetCdRomDirsCallback(StringCallback c, object data)
|
||||||
public void GetCdRomDirsCallback(StringCallback c, object data)
|
|
||||||
{
|
{
|
||||||
GCHandle objHandle = GCHandle.Alloc(data);
|
GCHandle objHandle = GCHandle.Alloc(data);
|
||||||
interop.PHYSFS_getCdRomDirsCallback(c, GCHandle.ToIntPtr(objHandle));
|
interop.PHYSFS_getCdRomDirsCallback(c, GCHandle.ToIntPtr(objHandle));
|
||||||
|
@ -636,9 +635,8 @@ namespace SharpPhysFS
|
||||||
{
|
{
|
||||||
interop.PHYSFS_getCdRomDirsCallback((p, s) => c(s), IntPtr.Zero);
|
interop.PHYSFS_getCdRomDirsCallback((p, s) => c(s), IntPtr.Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete("The non-generic variant of GetSearchPathCallback is meant for internal use only. Consider using one of the generic alternatives.")]
|
void GetSearchPathCallback(StringCallback c, object data)
|
||||||
public void GetSearchPathCallback(StringCallback c, object data)
|
|
||||||
{
|
{
|
||||||
GCHandle objHandle = GCHandle.Alloc(data);
|
GCHandle objHandle = GCHandle.Alloc(data);
|
||||||
interop.PHYSFS_getSearchPathCallback(c, GCHandle.ToIntPtr(objHandle));
|
interop.PHYSFS_getSearchPathCallback(c, GCHandle.ToIntPtr(objHandle));
|
||||||
|
@ -669,8 +667,7 @@ namespace SharpPhysFS
|
||||||
interop.PHYSFS_getSearchPathCallback((p, s) => c(s), IntPtr.Zero);
|
interop.PHYSFS_getSearchPathCallback((p, s) => c(s), IntPtr.Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete("The non-generic variant of EnumerateFilesCallback is meant for internal use only. Consider using one of the generic alternatives.")]
|
void EnumerateFilesCallback(string dir, EnumFilesCallback c, object data)
|
||||||
public void EnumerateFilesCallback(string dir, EnumFilesCallback c, object data)
|
|
||||||
{
|
{
|
||||||
GCHandle objHandle = GCHandle.Alloc(data);
|
GCHandle objHandle = GCHandle.Alloc(data);
|
||||||
interop.PHYSFS_enumerateFilesCallback(dir, c, GCHandle.ToIntPtr(objHandle));
|
interop.PHYSFS_enumerateFilesCallback(dir, c, GCHandle.ToIntPtr(objHandle));
|
||||||
|
|
Loading…
Reference in New Issue