diff --git a/Il2CppInspector.GUI/MainWindow.xaml b/Il2CppInspector.GUI/MainWindow.xaml index 7cfedc1..1ea60dc 100644 --- a/Il2CppInspector.GUI/MainWindow.xaml +++ b/Il2CppInspector.GUI/MainWindow.xaml @@ -5,8 +5,15 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Il2CppInspector.GUI" mc:Ignorable="d" - Title="MainWindow" Height="450" Width="800"> + Title="Il2CppInspector" Height="450" Width="800" Background="LightGray"> - + + foo + + + + + + diff --git a/Il2CppInspector.GUI/MainWindow.xaml.cs b/Il2CppInspector.GUI/MainWindow.xaml.cs index 0d85bde..b2eebc3 100644 --- a/Il2CppInspector.GUI/MainWindow.xaml.cs +++ b/Il2CppInspector.GUI/MainWindow.xaml.cs @@ -12,6 +12,7 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; +using Microsoft.Win32; namespace Il2CppInspector.GUI { @@ -23,5 +24,16 @@ namespace Il2CppInspector.GUI public MainWindow() { InitializeComponent(); } + + /// + /// Select global metadata file + /// + private void BtnSelectMetadataFile_OnClick(object sender, RoutedEventArgs e) { + var openFileDialog = new OpenFileDialog(); + openFileDialog.Filter = "IL2CPP global metadata file|global-metadata.dat|All files (*.*)|*.*"; + if (openFileDialog.ShowDialog() == true) { + // openFileDialog.FileName + } + } } }