Skip to content

Commit

Permalink
Debugger: NES header editor - Fixed blank VS PPU Type value when VS S…
Browse files Browse the repository at this point in the history
…ystem Type was not the default value
  • Loading branch information
SourMesen committed Feb 12, 2025
1 parent b1c5419 commit 081ae70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/Debugger/ViewModels/NesHeaderEditViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public static NesHeader FromBytes(byte[] bytes)
header.ChrRam = (MemorySizes)binHeader.GetChrRamSize();
header.ChrRamBattery = (MemorySizes)binHeader.GetSaveChrRamSize();
header.InputType = binHeader.GetInputType();
header.VsPpu = (VsPpuType)bytes[13];
header.VsPpu = (VsPpuType)(bytes[13] & 0x0F);
header.VsSystem = binHeader.GetVsSystemType();

return header;
Expand Down
2 changes: 1 addition & 1 deletion UI/Debugger/Windows/NesHeaderEditWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
CanResize="False"
Name="root"
Width="480"
Height="270"
Height="285"
Title="{l:Translate wndTitle}"
>
<Design.DataContext>
Expand Down

0 comments on commit 081ae70

Please sign in to comment.