mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-27 03:50:07 +02:00
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
20 lines
325 B
C#
20 lines
325 B
C#
using System;
|
|
|
|
namespace Ryujinx.Horizon.Common
|
|
{
|
|
public readonly struct OnScopeExit : IDisposable
|
|
{
|
|
private readonly Action _action;
|
|
|
|
public OnScopeExit(Action action)
|
|
{
|
|
_action = action;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
_action();
|
|
}
|
|
}
|
|
}
|