Skip to content

Commit 7359d5f

Browse files
committed
Added prompt on first boot to ensure players set paths/ubershader settings
1 parent 483e875 commit 7359d5f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Source/Core/DolphinQt/Main.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,31 @@ int main(int argc, char* argv[])
262262

263263
#if defined(USE_ANALYTICS) && USE_ANALYTICS
264264
if (!Config::Get(Config::MAIN_ANALYTICS_PERMISSION_ASKED))
265+
{
266+
ModalMessageBox firstboot_prompt(&win);
267+
268+
firstboot_prompt.setIcon(QMessageBox::Information);
269+
firstboot_prompt.setStandardButtons(QMessageBox::Ok);
270+
firstboot_prompt.setWindowTitle(QObject::tr("First Boot Prompt"));
271+
firstboot_prompt.setText(
272+
QObject::tr("New installation detected; read below for setup tips!"));
273+
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+
"If you are on modern hardware, we recommend setting Ubershaders "
279+
"to either Hybrid or Exclusive mode in Graphics > General for a "
280+
"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."));
283+
284+
SetQWidgetWindowDecorations(&firstboot_prompt);
285+
const int answer = firstboot_prompt.exec();
286+
}
287+
#endif
288+
#if defined(USE_ANALYTICS) && USE_ANALYTICS
289+
if (!Config::Get(Config::MAIN_ANALYTICS_PERMISSION_ASKED))
265290
{
266291
ModalMessageBox analytics_prompt(&win);
267292

0 commit comments

Comments
 (0)