Return of DesktopHeadTracking

This commit is contained in:
SDraw 2024-01-20 14:24:44 +03:00
parent c8743158ac
commit b05447c4df
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
24 changed files with 812 additions and 888 deletions

View file

@ -0,0 +1,26 @@
using System;
using System.IO;
using System.Reflection;
namespace ml_dht
{
static class ResourcesHandler
{
public static string GetEmbeddedResource(string p_name)
{
string l_result = "";
Assembly l_assembly = Assembly.GetExecutingAssembly();
string l_assemblyName = l_assembly.GetName().Name;
try
{
Stream l_libraryStream = l_assembly.GetManifestResourceStream(l_assemblyName + ".resources." + p_name);
StreamReader l_streadReader = new StreamReader(l_libraryStream);
l_result = l_streadReader.ReadToEnd();
}
catch(Exception) { }
return l_result;
}
}
}