1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-23 22:32:08 +00:00
Ryujinx/Ryujinx.Graphics/Gal/EmbeddedResource.cs

20 lines
472 B
C#
Raw Normal View History

using System.IO;
using System.Reflection;
namespace Ryujinx.Graphics.Gal
{
static class EmbeddedResource
{
public static string GetString(string name)
{
Assembly asm = typeof(EmbeddedResource).Assembly;
using (Stream resStream = asm.GetManifestResourceStream(name))
{
StreamReader reader = new StreamReader(resStream);
return reader.ReadToEnd();
}
}
}
}