mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
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:
1 parent
80d4673cd5
commit
793178c106
5 files changed
+17
-20
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user