mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-10 06:33:36 +02:00
Restructure the code slightly, make the old UI send a message to the emulator window to reflect the new logging status(to enable/disable the menu item, and possibly close the console), move the custom WM messages to an enum.
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
#include "GameInfoCache.h"
|
||||
#include "android/jni/TestRunner.h"
|
||||
|
||||
|
||||
#ifdef USING_QT_UI
|
||||
#include <QFileDialog>
|
||||
#include <QFile>
|
||||
@@ -73,6 +74,9 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
namespace MainWindow {
|
||||
enum {
|
||||
WM_USER_LOG_STATUS_CHANGED = WM_USER + 200
|
||||
};
|
||||
extern HWND hwndMain;
|
||||
void BrowseAndBoot(std::string defaultPath, bool browseDirectory = false);
|
||||
}
|
||||
@@ -771,6 +775,10 @@ void DeveloperScreen::render() {
|
||||
const static std::string reportHostOfficial = "report.ppsspp.org";
|
||||
|
||||
UICheckBox(GEN_ID, x, y += stride, d->T("Enable Logging"), ALIGN_TOPLEFT, &g_Config.bEnableLogging);
|
||||
#ifdef _WIN32
|
||||
// Update the main menu bar.
|
||||
PostMessage(MainWindow::hwndMain, MainWindow::WM_USER_LOG_STATUS_CHANGED, 0, 0);
|
||||
#endif
|
||||
|
||||
if (UICheckBox(GEN_ID, x, y += stride, d->T("Report","Enable Compatibility Server Reports"), ALIGN_TOPLEFT, &reportingEnabled)) {
|
||||
g_Config.sReportHost = reportingEnabled ? reportHostOfficial : "";
|
||||
|
||||
Reference in New Issue
Block a user