Windows: Initialize WindowsHost in EmuThread.

This seems like a more appropriate place, and a more appropriate thread,
for it to be initialized on.
This commit is contained in:
Unknown W. Brackets committed 2017-05-05 06:53:48 -07:00
1 parent 80d4673cd5
commit 793178c106
5 files changed
+17 -20

No files matched your search

+5 -1
View File
@@ -8,11 +8,12 @@
#include "Common/Log.h"
#include "Common/StringUtils.h"
#include "../Globals.h"
#include "Globals.h"
#include "Windows/EmuThread.h"
#include "Windows/W32Util/Misc.h"
#include "Windows/MainWindow.h"
#include "Windows/resource.h"
#include "Windows/WindowsHost.h"
#include "Core/Reporting.h"
#include "Core/MemMap.h"
#include "Core/Core.h"
@@ -91,6 +92,9 @@ unsigned int WINAPI TheThread(void *)
setCurrentThreadName("Emu"); // And graphics...
host = new WindowsHost(MainWindow::GetHInstance(), MainWindow::GetHWND(), MainWindow::GetDisplayHWND());
host->SetWindowTitle(nullptr);
// Convert the command-line arguments to Unicode, then to proper UTF-8
// (the benefit being that we don't have to pollute the UI project with win32 ifdefs and lots of Convert<whatever>To<whatever>).
// This avoids issues with PPSSPP inadvertently destroying paths with Unicode glyphs