misc: chore: make some cleaner extensions for converting to/from ui/hle enums

This commit is contained in:
Evan Husted
2025-03-04 18:24:24 -06:00
parent b0c0e8f7ad
commit 27cdf876a2
4 changed files with 27 additions and 7 deletions

View File

@@ -14,4 +14,13 @@ namespace Ryujinx.Ava.Systems.Configuration.System
Korea,
Taiwan,
}
public static class RegionEnumHelper
{
public static Region ToUI(this HLE.HOS.SystemState.RegionCode hleRegion)
=> (Region)hleRegion;
public static HLE.HOS.SystemState.RegionCode ToHLE(this Region uiRegion)
=> (HLE.HOS.SystemState.RegionCode)uiRegion;
}
}