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