mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
20 lines
472 B
C#
20 lines
472 B
C#
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|