Archived
1
0
Fork 0
forked from Mirror/Ryujinx
This repository has been archived on 2024-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
jinx/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();
}
}
}
}