Procházet zdrojové kódy

Merge pull request #2885 from Hexagon12/port-4944

Port citra-emu/citra#4944: "Added Host CPU and OS to log"
David před 6 roky
rodič
revize
97b8c9d2c3
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      src/yuzu/main.cpp

+ 8 - 0
src/yuzu/main.cpp

@@ -54,6 +54,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
 #include <QProgressDialog>
 #include <QProgressDialog>
 #include <QShortcut>
 #include <QShortcut>
 #include <QStatusBar>
 #include <QStatusBar>
+#include <QSysInfo>
 #include <QtConcurrent/QtConcurrent>
 #include <QtConcurrent/QtConcurrent>
 
 
 #include <fmt/format.h>
 #include <fmt/format.h>
@@ -66,6 +67,9 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
 #include "common/microprofile.h"
 #include "common/microprofile.h"
 #include "common/scm_rev.h"
 #include "common/scm_rev.h"
 #include "common/scope_exit.h"
 #include "common/scope_exit.h"
+#ifdef ARCHITECTURE_x86_64
+#include "common/x64/cpu_detect.h"
+#endif
 #include "common/telemetry.h"
 #include "common/telemetry.h"
 #include "core/core.h"
 #include "core/core.h"
 #include "core/crypto/key_manager.h"
 #include "core/crypto/key_manager.h"
@@ -205,6 +209,10 @@ GMainWindow::GMainWindow()
 
 
     LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", Common::g_build_fullname, Common::g_scm_branch,
     LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", Common::g_build_fullname, Common::g_scm_branch,
              Common::g_scm_desc);
              Common::g_scm_desc);
+#ifdef ARCHITECTURE_x86_64
+    LOG_INFO(Frontend, "Host CPU: {}", Common::GetCPUCaps().cpu_string);
+#endif
+    LOG_INFO(Frontend, "Host OS: {}", QSysInfo::prettyProductName().toStdString());
     UpdateWindowTitle();
     UpdateWindowTitle();
 
 
     show();
     show();