public static void SetupDirectRelinkMap(XnaToFnaUtil xtf, XnaToFnaMapping mapping, Action <XnaToFnaUtil, TypeDefinition> action)
 {
     foreach (TypeDefinition type in mapping.Module.Types)
     {
         SetupDirectRelinkMapType(xtf, type, action);
     }
 }
        public static void SetupGSRelinkMap(XnaToFnaUtil xtf, XnaToFnaMapping mapping)
        {
            // Required for some X360 titles.

            SetupDirectRelinkMap(xtf, mapping, (_, type) => {
                // Fix .GamerServices references pointing to .Game by creating direct type mappings.
                xtf.Modder.RelinkMap[type.FullName] = type;
                // Fix .GamerServices references being in the .Net namespace in our replacement assembly.
                if (type.FullName.Contains(".Net."))
                {
                    xtf.Modder.RelinkMap[type.FullName.Replace(".Net.", ".GamerServices.")] = type;
                }
            });
        }
 public static void SetupDirectRelinkMap(XnaToFnaUtil xtf, XnaToFnaMapping mapping)
 {
     SetupDirectRelinkMap(xtf, mapping, null);
 }