mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 00:42:48 +00:00
emulator: crash faster
By disabling Windows Error Reporting.
This commit is contained in:
parent
0d498f12b9
commit
74869d9a04
@ -44,10 +44,11 @@ Frontend::WindowSDL* g_window = nullptr;
|
|||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
Emulator::Emulator() {
|
Emulator::Emulator() {
|
||||||
// Initialize NT API functions and set high priority
|
// Initialize NT API functions, set high priority and disable WER
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
Common::NtApi::Initialize();
|
Common::NtApi::Initialize();
|
||||||
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
|
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
|
||||||
|
SetErrorMode(SetErrorMode(0) | SEM_NOGPFAULTERRORBOX);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Start logger.
|
// Start logger.
|
||||||
|
Loading…
Reference in New Issue
Block a user