|
37 | 37 | #include "DolphinQt/QtUtils/SetWindowDecorations.h" |
38 | 38 | #include "DolphinQt/Resources.h" |
39 | 39 | #include "DolphinQt/Settings.h" |
| 40 | +#include "DolphinQt/Settings/PathPane.h" |
40 | 41 | #include "DolphinQt/Translation.h" |
41 | 42 | #include "DolphinQt/Updater.h" |
42 | 43 |
|
@@ -263,26 +264,29 @@ int main(int argc, char* argv[]) |
263 | 264 | #if defined(USE_ANALYTICS) && USE_ANALYTICS |
264 | 265 | if (!Config::Get(Config::MAIN_ANALYTICS_PERMISSION_ASKED)) |
265 | 266 | { |
266 | | - ModalMessageBox firstboot_prompt(&win); |
267 | | - |
| 267 | + QMessageBox firstboot_prompt(&win); |
268 | 268 | firstboot_prompt.setIcon(QMessageBox::Information); |
269 | | - firstboot_prompt.setStandardButtons(QMessageBox::Ok); |
270 | 269 | firstboot_prompt.setWindowTitle(QObject::tr("First Boot Prompt")); |
271 | 270 | firstboot_prompt.setText( |
272 | 271 | QObject::tr("New installation detected; read below for setup tips!")); |
273 | 272 | firstboot_prompt.setInformativeText(QObject::tr( |
274 | | - "Make sure to set your Brawl ISO as default before playing " |
275 | | - "in order for the game to load. \n" |
276 | | - "If you are on macOS or Linux, also ensure your launcher and sd.raw " |
277 | | - "paths are set as well, as they may not be properly set by default. \n\n" |
278 | 273 | "If you are on modern hardware, we recommend setting Ubershaders " |
279 | 274 | "to either Hybrid or Exclusive mode in Graphics > General for a " |
280 | 275 | "stutter-free experience while playing. \n\n" |
281 | | - "Thank you for playing! " |
282 | | - "The next text box will ask you to opt in to Dolphin's analytics collection.")); |
| 276 | + "Select your Brawl ISO using the button below to allow the mod to load properly. \n" |
| 277 | + "You can also set this path later in Config > Paths.\n\n" |
| 278 | + "Thank you for playing!")); |
| 279 | + QAbstractButton* pButtonYes = firstboot_prompt.addButton(QObject::tr("Select ISO"), QMessageBox::YesRole); |
| 280 | + firstboot_prompt.addButton(QObject::tr("Skip"), QMessageBox::NoRole); |
| 281 | + |
| 282 | + firstboot_prompt.exec(); |
| 283 | + |
| 284 | + if (firstboot_prompt.clickedButton() == pButtonYes) |
| 285 | + { |
| 286 | + PathPane path_pane; |
| 287 | + path_pane.BrowseDefaultGame(); |
| 288 | + } |
283 | 289 |
|
284 | | - SetQWidgetWindowDecorations(&firstboot_prompt); |
285 | | - const int answer = firstboot_prompt.exec(); |
286 | 290 | } |
287 | 291 | #endif |
288 | 292 | #if defined(USE_ANALYTICS) && USE_ANALYTICS |
|
0 commit comments