Added AvaloniaUI project.

This commit is contained in:
2025-03-01 17:03:06 -05:00
parent f78fe6fa2b
commit fc28004c89
25 changed files with 616 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
using System.Runtime.InteropServices;
namespace Harmonia.Core.Engine;
public static class BassLoader
{
public static void Initialize()
{
string archFolder = Environment.Is64BitProcess ? "x64" : "x86";
string bassPluginPath = Path.Combine("Plugins", "Bass", "Win32", archFolder);
LoadLibrary(bassPluginPath, "bass.dll");
LoadLibrary(bassPluginPath, "bassflac.dll");
}
private static void LoadLibrary(string bassPluginPath, string resourceName)
{
string resourcePath = Path.Combine(bassPluginPath, resourceName);
NativeLibrary.Load(resourcePath);
}
}