Fix for PuppetMaster 1.4

Archived DesktopHeadTracking and ViveEyeTracking
This commit is contained in:
SDraw 2025-08-17 09:37:39 +03:00
parent b21d5497d9
commit 01a833f46d
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
24 changed files with 430 additions and 441 deletions

View file

@ -1,30 +0,0 @@
using System;
using System.IO;
using System.Reflection;
namespace ml_vet
{
static class ResourcesHandler
{
readonly static string ms_namespace = typeof(ResourcesHandler).Namespace;
public static string GetEmbeddedResource(string p_name)
{
string l_result = "";
Assembly l_assembly = Assembly.GetExecutingAssembly();
try
{
Stream l_libraryStream = l_assembly.GetManifestResourceStream(ms_namespace + ".resources." + p_name);
StreamReader l_streadReader = new StreamReader(l_libraryStream);
l_result = l_streadReader.ReadToEnd();
}
catch(Exception e)
{
MelonLoader.MelonLogger.Warning(e);
}
return l_result;
}
}
}