Exporting is working and rendering correctly in pcsx-redux

This commit is contained in:
2025-03-14 00:15:35 +01:00
parent 1e480f6c15
commit 8a6679dff6
10 changed files with 241 additions and 55 deletions

28
Runtime/Utils.cs Normal file
View File

@@ -0,0 +1,28 @@
using UnityEngine;
namespace PSXSplash.RuntimeCode
{
public class ProhibitedArea
{
public int X;
public int Y;
public int Width;
public int Height;
public static ProhibitedArea FromUnityRect(Rect rect)
{
return new ProhibitedArea
{
X = Mathf.RoundToInt(rect.x),
Y = Mathf.RoundToInt(rect.y),
Width = Mathf.RoundToInt(rect.width),
Height = Mathf.RoundToInt(rect.height)
};
}
public Rect ToUnityRect()
{
return new Rect(X, Y, Width, Height);
}
}
}