예제 #1
0
        public Microsoft.Xna.Framework.Media.Song Load(string assetName)
        {
            String s        = Encrypter.DecryptFileSong(System.IO.Path.Combine(Game1.rootContent, assetName + ".cwma"));
            String scontent = s.Replace(Game1.rootContent, "").Substring(0, s.Replace(TBAGW.Game1.rootContent, "").LastIndexOf("."));
            var    temp     = base.Load <Microsoft.Xna.Framework.Media.Song>(scontent);

            if (System.IO.File.Exists(s))
            {
                System.IO.File.Delete(s);
            }

            return(temp);
        }