- Refactored the AddIn-System to allow merged assemblies (for metro, android, etc. later on) - Added empty PsVita Sound and Media System modules - Fixed 2 small missing excludes in the build script - Cleaned the License headers in the shader files - Some other refactorings
19 lines
414 B
C#
19 lines
414 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace ANX.Framework.NonXNA
|
|
{
|
|
internal static class ManifestHelper
|
|
{
|
|
public static Stream GetManifestResourceStream(Game game, string name)
|
|
{
|
|
Type gameType = game.GetType();
|
|
#if WINDOWSMETRO
|
|
return gameType.GetTypeInfo().Assembly.GetManifestResourceStream(name);
|
|
#else
|
|
return gameType.Assembly.GetManifestResourceStream(name);
|
|
#endif
|
|
}
|
|
}
|
|
}
|