539    {
  540        string adjustedPath = 
path;
 
  541        bool run = true;
  543        resultArr.Insert(item);
  544        while (run)
  545        {
  546            
  547            string baseClass = "";
  549            if (baseClass)
  550            {
  552                adjustedPath.
Split(
" ",strs);
 
  553                strs.Remove(strs.Count() - 1);
  554                strs.Insert(baseClass);
  555            
  556                adjustedPath = 
string.
Join(
" ", strs);
 
  557                resultArr.Insert(baseClass);
  558                if (adjustedPath == 
path)
 
  559                    break;
  560            }
  561            
  562        }
  563        string result;
  564        resultArr.Invert();
  565        foreach (int i, string str: resultArr)
  566        {
  567            if (i != 0)
  568                result += " >> " + str;
  569            else
  570                result += str;
  571        }
  572            
  573        return result;
  574    }
proto bool ConfigGetBaseName(string path, out string base_name)
Get name of base class of config class on path.
proto native CGame GetGame()
array< string > TStringArray
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
static string Join(string separator, notnull TStringArray tokens)