Skip to content

Commit 729aab6

Browse files
committed
More deserialization fixes
1 parent 98a8ac2 commit 729aab6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/RollColumn.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ public class RollColumn
3131
public bool Rotatable { get; set; }
3232

3333
[JsonConstructor]
34-
private RollColumn()
34+
private RollColumn(string name, string text, ColumnType type)
3535
{
36-
Name = default!;
37-
Text = default!;
36+
Name = name;
37+
Text = text;
38+
Type = type;
3839
}
3940

4041
public RollColumn(string name, int widthUnscaled, ColumnType type, string text)

src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudioPalette.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Drawing;
2+
using System.Text.Json.Serialization;
23

34
namespace BizHawk.Client.EmuHawk
45
{
@@ -49,6 +50,7 @@ public readonly struct TAStudioPalette
4950

5051
public readonly Color AnalogEdit_Col;
5152

53+
[JsonConstructor]
5254
public TAStudioPalette(
5355
// Color currentFrame_FrameCol,
5456
Color currentFrame_InputLog,

0 commit comments

Comments
 (0)