GUI: Usability tweaks when using Linux process map
This commit is contained in:
@@ -437,7 +437,13 @@
|
|||||||
<!-- Load options -->
|
<!-- Load options -->
|
||||||
<Button Grid.Row="2" Name="btnLoadOptions" Style="{StaticResource LightBoxButton}" Click="BtnLoadOptions_Click" Margin="0,0,10,10" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="18" Width="180" Content="Import options..."/>
|
<Button Grid.Row="2" Name="btnLoadOptions" Style="{StaticResource LightBoxButton}" Click="BtnLoadOptions_Click" Margin="0,0,10,10" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="18" Width="180" Content="Import options..."/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Button Name="btnSelectBinaryFile" Style="{StaticResource LightBoxButton}" Margin="100" Click="BtnSelectBinaryFile_OnClick" Visibility="Hidden">Select or drag & drop an IL2CPP binary file</Button>
|
<Button Name="btnSelectBinaryFile" Style="{StaticResource LightBoxButton}" Margin="100" Click="BtnSelectBinaryFile_OnClick" Visibility="Hidden">
|
||||||
|
<TextBlock TextAlignment="Center">
|
||||||
|
<TextBlock>Select or drag & drop an IL2CPP binary file</TextBlock>
|
||||||
|
<LineBreak/>
|
||||||
|
<TextBlock FontSize="16">You can also use a Linux process map (eg. maps.txt from GameGuardian)</TextBlock>
|
||||||
|
</TextBlock>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<!-- Back button -->
|
<!-- Back button -->
|
||||||
<Button Name="btnBack" Margin="7" Padding="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="18" Width="120" Click="BtnBack_OnClick" Content="<< Back">
|
<Button Name="btnBack" Margin="7" Padding="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="18" Width="120" Click="BtnBack_OnClick" Content="<< Back">
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ namespace Il2CppInspectorGUI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private async void BtnSelectBinaryFile_OnClick(object sender, RoutedEventArgs e) {
|
private async void BtnSelectBinaryFile_OnClick(object sender, RoutedEventArgs e) {
|
||||||
var openFileDialog = new OpenFileDialog {
|
var openFileDialog = new OpenFileDialog {
|
||||||
Filter = "Binary executable file (*.exe;*.dll;*.so;*.bin;*.prx;*.sprx)|*.exe;*.dll;*.so;*.bin;*.prx;*.sprx|All files (*.*)|*.*",
|
Filter = "Binary executable file (*.exe;*.dll;*.so;*.bin;*.prx;*.sprx)|*.exe;*.dll;*.so;*.bin;*.prx;*.sprx|Linux process map file (*.txt)|*.txt|All files (*.*)|*.*",
|
||||||
CheckFileExists = true
|
CheckFileExists = true
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -608,7 +608,7 @@ namespace Il2CppInspectorGUI
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Metadata and binary
|
// Metadata and binary/text
|
||||||
else if (files.Length == 2 && (files[0].ToLower().EndsWith(".dat") || files[1].ToLower().EndsWith(".dat"))) {
|
else if (files.Length == 2 && (files[0].ToLower().EndsWith(".dat") || files[1].ToLower().EndsWith(".dat"))) {
|
||||||
var metadataIndex = files[0].ToLower().EndsWith(".dat") ? 0 : 1;
|
var metadataIndex = files[0].ToLower().EndsWith(".dat") ? 0 : 1;
|
||||||
var binaryIndex = 1 - metadataIndex;
|
var binaryIndex = 1 - metadataIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user