aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorAleksandr Popovich <alekpopo@pm.me>2025-05-19 21:30:10 +0000
committerAlekPop <alekpop@noreply.localhost>2025-05-19 21:30:10 +0000
commit1f8b8e0fa16fe9e254d31f06dde6984bbd75676f (patch)
tree65effe55c2c06b1fc9c087470fa2bd87f60dc461 /src/yuzu/main.cpp
parentbc55ed496f48f8b9f5ecde3d6dfc35d03912ba2e (diff)
remove solo executables (#106)
also, fixes CI not targeting the right flag settings. this pr needs to add the room exe removal from lime3ds. Signed-off-by: Aleksandr Popovich <alekpopo@pm.me> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/106 Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Co-committed-by: Aleksandr Popovich <alekpopo@pm.me>
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