Merge branch 'master' into vulkan

This commit is contained in:
Triang3l
2022-03-21 20:57:02 +03:00
39 changed files with 867 additions and 254 deletions

View File

@@ -224,7 +224,7 @@ void EmulatorWindow::OnEmulatorInitialized() {
// When the user can see that the emulator isn't initializing anymore (the
// menu isn't disabled), enter fullscreen if requested.
if (cvars::fullscreen) {
window_->SetFullscreen(true);
SetFullscreen(true);
}
}

View File

@@ -17,6 +17,7 @@
#include "xenia/app/discord/discord_presence.h"
#include "xenia/app/emulator_window.h"
#include "xenia/base/assert.h"
#include "xenia/base/cvar.h"
#include "xenia/base/debugging.h"
#include "xenia/base/logging.h"
@@ -372,6 +373,7 @@ bool EmulatorApp::OnInitialize() {
// Setup the emulator and run its loop in a separate thread.
emulator_thread_quit_requested_.store(false, std::memory_order_relaxed);
emulator_thread_event_ = xe::threading::Event::CreateAutoResetEvent(false);
assert_not_null(emulator_thread_event_);
emulator_thread_ = std::thread(&EmulatorApp::EmulatorThread, this);
return true;