mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-26 23:22:22 -05: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