Ejemplo n.º 1
0
        private Dictionary <string, string> GetSubstitutionText(GameLoader loader, string profile)
        {
            Dictionary <string, string> result = new Dictionary <string, string>();

            result.Add("BUILD", string.Format("{0:HH}{0:mm}{0:dd}{0:MM}{0:yy}", DateTime.Now));
            result.Add("PROFILE", profile);

            foreach (string field in loader.GetSubstitutionFieldNames())
            {
                result.Add(field, loader.GetSubstitutionText(field));
            }

            return(result);
        }
Ejemplo n.º 2
0
        private Dictionary<string, string> GetSubstitutionText(GameLoader loader, string profile)
        {
            Dictionary<string, string> result = new Dictionary<string, string>();
            result.Add("BUILD", string.Format("{0:HH}{0:mm}{0:dd}{0:MM}{0:yy}", DateTime.Now));
            result.Add("PROFILE", profile);

            foreach (string field in loader.GetSubstitutionFieldNames())
            {
                result.Add(field, loader.GetSubstitutionText(field));
            }

            return result;
        }