2018-02-23 13:48:27 -08:00
|
|
|
using System.IO;
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
{
|
|
|
|
static class EmbeddedResource
|
|
|
|
{
|
2019-03-03 17:45:25 -08:00
|
|
|
public static string GetString(string name)
|
2018-02-23 13:48:27 -08:00
|
|
|
{
|
2019-03-03 17:45:25 -08:00
|
|
|
Assembly asm = typeof(EmbeddedResource).Assembly;
|
2018-02-23 13:48:27 -08:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
using (Stream resStream = asm.GetManifestResourceStream(name))
|
2018-02-23 13:48:27 -08:00
|
|
|
{
|
2019-03-03 17:45:25 -08:00
|
|
|
StreamReader reader = new StreamReader(resStream);
|
2018-02-23 13:48:27 -08:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
return reader.ReadToEnd();
|
2018-02-23 13:48:27 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|