Beispiel #1
0
        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);
        }
Beispiel #2
0
 public virtual uint BuildPath(SourceMod.PathType type, IntPtr buffer, uint maxlength, string format)
 {
     return(impl.BuildPath(Native, type, buffer, maxlength, format));
 }
Beispiel #3
0
 public string GetPath(SourceMod.PathType type)
 {
     return(GetPath(type, 1024));
 }
Beispiel #4
0
 public string GetPath(SourceMod.PathType type, int size)
 {
     return(GetPath(type, "", size));
 }