Skip to content

Commit

Permalink
cleanup ResolveReaderType (#1554)
Browse files Browse the repository at this point in the history
no TypeReaders in Xna.Framework.dll nor MonoGame.Framework.dll
  • Loading branch information
nkast authored May 12, 2024
1 parent 10ea14e commit 710c1c2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Xna.Framework.Content/Content/ContentTypeReaderManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,6 @@ internal static Type ResolveReaderType(string readerTypeName)
return readerType;

// map XNA build-in TypeReaders
resolvedReaderTypeName = readerTypeName.Replace(", Microsoft.Xna.Framework", string.Format(", {0}", "Xna.Framework"));
readerType = Type.GetType(resolvedReaderTypeName);
if (readerType != null)
return readerType;

resolvedReaderTypeName = readerTypeName + string.Format(", {0}", "MonoGame.Framework");
readerType = Type.GetType(resolvedReaderTypeName);
if (readerType != null)
return readerType;

resolvedReaderTypeName = readerTypeName + string.Format(", {0}", _contentGraphicsAssemblyName);
readerType = Type.GetType(resolvedReaderTypeName);
if (readerType != null)
Expand Down

0 comments on commit 710c1c2

Please sign in to comment.