aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 450d340580..928e42df59 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -52,6 +52,10 @@
#include "yuzu/multiplayer/state.h"
#include "yuzu/util/controller_navigation.h"
+#ifdef YUZU_ROOM
+#include "dedicated_room/yuzu_room.h"
+#endif
+
// These are wrappers to avoid the calls to CreateDirectory and CreateFile because of the Windows
// defines.
static FileSys::VirtualDir VfsFilesystemCreateDirectoryWrapper(
@@ -5457,6 +5461,20 @@ static void SetHighDPIAttributes() {
}
int main(int argc, char* argv[]) {
+#if YUZU_ROOM
+ bool launch_room = false;
+ for (int i = 1; i < argc; i++) {
+ if (strcmp(argv[i], "--room") == 0) {
+ launch_room = true;
+ }
+ }
+
+ if (launch_room) {
+ LaunchRoom(argc, argv, true);
+ return 0;
+ }
+#endif
+
bool has_broken_vulkan = false;
bool is_child = false;
if (CheckEnvVars(&is_child)) {
@@ -5521,6 +5539,7 @@ int main(int argc, char* argv[]) {
QApplication app(argc, argv);
+
#ifdef _WIN32
OverrideWindowsFont();
#endif