Example #1
0
        public static void AddFetch(TPF tpf, string texName)
        {
            string shortName = Path.GetFileNameWithoutExtension(texName);

            if (!Fetches.ContainsKey(shortName))
            {
                lock (_lock_pool)
                {
                    if (tpf.Platform == TPF.TPFPlatform.PS3)
                    {
                        tpf.ConvertPS3ToPC();
                    }
                    if (tpf.Platform == TPF.TPFPlatform.PS4)
                    {
                        tpf.ConvertPS4ToPC();
                    }
                    var newFetch = new TextureFetchRequest(tpf, texName);
                    Fetches.Add(shortName, newFetch);
                }
            }
        }