mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-07-07 19:49:08 +00:00
Move solution and projects to src
This commit is contained in:
19
src/Ryujinx.Horizon.Common/OnScopeExit.cs
Normal file
19
src/Ryujinx.Horizon.Common/OnScopeExit.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Horizon.Common
|
||||
{
|
||||
public struct OnScopeExit : IDisposable
|
||||
{
|
||||
private readonly Action _action;
|
||||
|
||||
public OnScopeExit(Action action)
|
||||
{
|
||||
_action = action;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_action();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user