This commit is contained in:
erik 2025-06-09 02:03:11 +02:00
parent 01151e679b
commit 57b2f0400e
265 changed files with 22828 additions and 6 deletions

View file

@ -0,0 +1,38 @@
using Decal.Interop.Core;
namespace Decal.Adapter;
public sealed class ServiceProxy : IDecalService, IDecalDirectory
{
private ServiceBase wrapped;
internal ServiceProxy(ServiceBase toWrap)
{
wrapped = toWrap;
}
void IDecalService.AfterPlugins()
{
wrapped.ServiceEvent(ServiceBase.ServiceEventType.AfterPluigins);
}
void IDecalService.BeforePlugins()
{
wrapped.ServiceEvent(ServiceBase.ServiceEventType.BeforePlugins);
}
void IDecalService.Initialize(DecalCore pDecal)
{
wrapped.standardEvent(ExtensionEvents.Startup);
}
void IDecalService.Terminate()
{
wrapped.standardEvent(ExtensionEvents.Shutdown);
}
object IDecalDirectory.Lookup(string strName)
{
return wrapped.ResolvePath(strName);
}
}