Example #1
0
        private async void MetroWindow_Loaded(object sender, RoutedEventArgs e)
        {
            PARAMDATA.LoadConfig();

            if (!string.IsNullOrWhiteSpace(PARAMDATA.Config?.InterrootPath) && CheckInterrotDirValid(PARAMDATA.Config?.InterrootPath))
            {
                await PARAMDATA.LoadParamsInOtherThread(SetLoadingMode);
            }
            else
            {
                if (MessageBox.Show("If you are using non-remastered Dark Souls: Prepare to Die Edition, your installation " +
                                    "MUST be unpacked by UnpackDarkSoulsForModding by HotPocketRemix.\n\n" +
                                    @"Please navigate to your 'DARKSOULS.exe' or 'DarkSoulsRemastered.exe' file." +
                                    "\n\nOnce the inital setup is performed, the path will be saved." +
                                    "\nYou may press cancel to continue without selecting the path but the GUI will " +
                                    "be blank until you go to 'File -> Select Dark Souls Directory...'",
                                    "Initial Setup", MessageBoxButton.OKCancel, MessageBoxImage.Information) == MessageBoxResult.OK)
                {
                    await BrowseForInterrootDialog(SetLoadingMode);
                }
            }

            MainTabs.Items.Refresh();

            //RANDOM_DEBUG_TESTING();
        }