public string GetPath(SourceMod.PathType type, string format, int size) { IntPtr ptr = Marshal.AllocHGlobal(size); BuildPath(type, ptr, (uint)size, format); string ret = new string((sbyte *)ptr); Marshal.FreeHGlobal(ptr); return(ret); }
public virtual uint BuildPath(SourceMod.PathType type, IntPtr buffer, uint maxlength, string format) { return(impl.BuildPath(Native, type, buffer, maxlength, format)); }
public string GetPath(SourceMod.PathType type) { return(GetPath(type, 1024)); }
public string GetPath(SourceMod.PathType type, int size) { return(GetPath(type, "", size)); }