Skip to content

Commit aa27b74

Browse files
committed
Make NOR reading code good
1 parent 7ee74d0 commit aa27b74

5 files changed

Lines changed: 379 additions & 173 deletions

File tree

PS5 NOR Modifier/MainWindow.axaml

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
mc:Ignorable="d" d:DesignWidth="847" d:DesignHeight="590"
77
Width="847" Height="557"
88
x:Class="PS5_NOR_Modifier.MainWindow"
9-
Title="MainWindow" FontSize="12" WindowStartupLocation="CenterScreen">
9+
Title="PS5 NOR Modifier" FontSize="12" WindowStartupLocation="CenterScreen">
1010
<Grid>
1111
<Grid RowDefinitions="85 55 * 81 22" ColumnDefinitions="*" Margin="10 10 10 0">
1212
<StackPanel Grid.Row="0" Orientation="Horizontal">
@@ -28,7 +28,7 @@
2828
</TextBlock>
2929
<TabControl Grid.Row="2" Background="#20000000" Padding="0">
3030
<TabItem Header="NOR Modifier">
31-
<Grid RowDefinitions="50 *" ColumnDefinitions="* * * *" Margin="4">
31+
<Grid RowDefinitions="50 *" ColumnDefinitions="Auto * Auto *" Margin="4">
3232
<StackPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4">
3333
<Label>Select NOR Dump</Label>
3434
<Grid ColumnDefinitions="* Auto">
@@ -45,6 +45,11 @@
4545
<Label>File Size:</Label>
4646
<Label>WiFi MAC Address:</Label>
4747
<Label>LAN MAC Address:</Label>
48+
<StackPanel.Styles>
49+
<Style Selector="Label">
50+
<Setter Property="Padding" Value="3 5 15 5" />
51+
</Style>
52+
</StackPanel.Styles>
4853
</StackPanel>
4954
<StackPanel Grid.Column="1" Grid.Row="1" Margin="0 22 0 0">
5055
<Label Name="SerialNumberOut">...</Label>
@@ -54,6 +59,11 @@
5459
<Label Name="FileSizeOut">...</Label>
5560
<Label Name="WiFiMACAddressOut">...</Label>
5661
<Label Name="LANMACAddressOut">...</Label>
62+
<StackPanel.Styles>
63+
<Style Selector="Label">
64+
<Setter Property="Padding" Value="3 5" />
65+
</Style>
66+
</StackPanel.Styles>
5767
</StackPanel>
5868
<StackPanel Grid.Column="2" Grid.Row="1">
5969
<Label FontWeight="Bold">Modify Values</Label>
@@ -64,45 +74,18 @@
6474
<Label>LAN MAC Address:</Label>
6575
<StackPanel.Styles>
6676
<Style Selector="Label">
67-
<Setter Property="Padding" Value="3 5" />
77+
<Setter Property="Padding" Value="3 5 15 5" />
6878
</Style>
6979
</StackPanel.Styles>
7080
</StackPanel>
7181
<StackPanel Grid.Column="3" Grid.Row="1" Margin="0 27 0 0">
7282
<TextBox Name="SerialNumberIn" />
73-
<ComboBox Name="BoardVariantIn">
74-
<ComboBoxItem>CFI-1000A</ComboBoxItem>
75-
<ComboBoxItem>CFI-1000A01</ComboBoxItem>
76-
<ComboBoxItem>CFI-1000B</ComboBoxItem>
77-
<ComboBoxItem>CFI-1002A</ComboBoxItem>
78-
<ComboBoxItem>CFI-1008A</ComboBoxItem>
79-
<ComboBoxItem>CFI-1014A</ComboBoxItem>
80-
<ComboBoxItem>CFI-1015A</ComboBoxItem>
81-
<ComboBoxItem>CFI-1015B</ComboBoxItem>
82-
<ComboBoxItem>CFI-1016A</ComboBoxItem>
83-
<ComboBoxItem>CFI-1018A</ComboBoxItem>
84-
<ComboBoxItem>CFI-1100A01</ComboBoxItem>
85-
<ComboBoxItem>CFI-1102A</ComboBoxItem>
86-
<ComboBoxItem>CFI-1108A</ComboBoxItem>
87-
<ComboBoxItem>CFI-1109A</ComboBoxItem>
88-
<ComboBoxItem>CFI-1114A</ComboBoxItem>
89-
<ComboBoxItem>CFI-1115A</ComboBoxItem>
90-
<ComboBoxItem>CFI-1116A</ComboBoxItem>
91-
<ComboBoxItem>CFI-1118A</ComboBoxItem>
92-
<ComboBoxItem>CFI-1208A</ComboBoxItem>
93-
<ComboBoxItem>CFI-1215A</ComboBoxItem>
94-
<ComboBoxItem>CFI-1216A</ComboBoxItem>
95-
<ComboBoxItem>DFI-T1000AA</ComboBoxItem>
96-
<ComboBoxItem>DFI-D1000AA</ComboBoxItem>
97-
</ComboBox>
98-
<ComboBox Name="PS5ModelIn">
99-
<ComboBoxItem>Digital Edition</ComboBoxItem>
100-
<ComboBoxItem>Disc Edition</ComboBoxItem>
101-
</ComboBox>
83+
<ComboBox Name="BoardVariantIn" />
84+
<ComboBox Name="PS5ModelIn" />
10285
<TextBox Name="WiFiMACAddressIn" IsEnabled="False" />
10386
<TextBox Name="LANMACAddressIn" IsEnabled="False" />
10487

105-
<Button>Save New BIOS Information</Button>
88+
<Button Name="SaveButton" Click="SaveButton_OnClick" Margin="0 5 0 0">Save New BIOS Information</Button>
10689
</StackPanel>
10790
</Grid>
10891
</TabItem>

0 commit comments

Comments
 (0)