mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-02 16:50:48 -07:00
Somewhat better NvFlinger (I guess) (fixes #30)
This commit is contained in:
20
Ryujinx.Graphics/Gal/EmbeddedResource.cs
Normal file
20
Ryujinx.Graphics/Gal/EmbeddedResource.cs
Normal file
@ -0,0 +1,20 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user