Beispiel #1
0
 public void Update()
 {
     //extract resources as soon as they become available
     if (!ResourceExtractor.Extracted)
     {
         ResourceExtractor.Extract();
     }
 }
        static void AddEntry(ref Dictionary <string, string> dictionary, string key, string value, string source)
        {
            //decode human-friendly id
            key = ResourceExtractor.DecodeId(key) ?? key;

            //detect collisions
            if (dictionary.ContainsKey(key))
            {
                DiscoTranslator2.PluginLogger.LogWarning("Warning: duplicate entry key: " + key);
                DiscoTranslator2.PluginLogger.LogWarning("Source file: " + source);

                dictionary[key] = value;
                return;
            }

            dictionary.Add(key, value);
        }