Skip to content

Commit b18fd1f

Browse files
committed
Add SetAkuAkuMasks() method
1 parent 5e70e94 commit b18fd1f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

PSDX/PsxSaveData.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace PSDX;
1+
namespace PSDX;
22

33
public class PsxSaveData
44
{
@@ -91,4 +91,11 @@ public int GetAkuAkuMasks()
9191
_stream.Position = _akuAkuOffset;
9292
return _stream.ReadByte();
9393
}
94+
95+
public void SetAkuAkuMasks(int number)
96+
{
97+
_stream.Position = _akuAkuOffset;
98+
byte[] bytes = BitConverter.GetBytes(number);
99+
_stream.Write(bytes, 0, bytes.Length);
100+
}
94101
}

0 commit comments

Comments
 (0)