Fix a bug under Windows8 ModernUI
This commit is contained in:
parent
a0f8d1fd23
commit
ab91d83a1b
@ -50,7 +50,7 @@ namespace ANX.Framework.NonXNA.PlatformSystem
|
|||||||
foreach (Type type in assembly.GetExportedTypes())
|
foreach (Type type in assembly.GetExportedTypes())
|
||||||
#else
|
#else
|
||||||
AssemblyName assemblyName = new AssemblyName(platformAssemblyName);
|
AssemblyName assemblyName = new AssemblyName(platformAssemblyName);
|
||||||
Assembly assembly = Assembly.Load(assemblyName);
|
Assembly assembly = Assembly.Load(assemblyName);
|
||||||
|
|
||||||
foreach (Type type in assembly.ExportedTypes)
|
foreach (Type type in assembly.ExportedTypes)
|
||||||
#endif
|
#endif
|
||||||
@ -76,7 +76,7 @@ namespace ANX.Framework.NonXNA.PlatformSystem
|
|||||||
case PlatformName.PSVita:
|
case PlatformName.PSVita:
|
||||||
return prefix + platform.ToString() + suffix;
|
return prefix + platform.ToString() + suffix;
|
||||||
case PlatformName.Windows8:
|
case PlatformName.Windows8:
|
||||||
return prefix + "Metro" + suffix;
|
return prefix + "Metro";
|
||||||
default:
|
default:
|
||||||
throw new PlatformSystemInstanceException("couldn't solve assembly name for platform '" + platform.ToString() + "'");
|
throw new PlatformSystemInstanceException("couldn't solve assembly name for platform '" + platform.ToString() + "'");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user