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