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