From 8b35df83274515efd67e2dfcef84622ab602f1b0 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 18 Aug 2017 11:12:52 +0200 Subject: [PATCH] misc: add build warning to log --- rpcs3/rpcs3qt/main_window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 0039b80e4f..addb763354 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -119,14 +119,17 @@ void main_window::Init() if (false) #endif { + LOG_WARNING(GENERAL, "Experimental Build Warning! Build origin: " STRINGIZE(BRANCH)); + QMessageBox msg; msg.setWindowTitle("Experimental Build Warning"); + msg.setWindowIcon(appIcon); msg.setIcon(QMessageBox::Critical); msg.setTextFormat(Qt::RichText); msg.setText("Please understand that this build is not an official RPCS3 release.
This build contains changes that may break games, or even damage your data.
It's recommended to download and use the official build from RPCS3 website.

Build origin: " STRINGIZE(BRANCH) "
Do you wish to use this build anyway?"); msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msg.setDefaultButton(QMessageBox::No); - + if (msg.exec() == QMessageBox::No) { std::exit(EXIT_SUCCESS);