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 string GetPath(SourceMod.PathType type)
 {
     return GetPath(type, 1024);
 }
Beispiel #3
0
 public string GetPath(SourceMod.PathType type, int size)
 {
     return GetPath(type, "", size);
 }