From 9a8005e6fdbd67a1f6d569041b0955b14f460f64 Mon Sep 17 00:00:00 2001 From: PikminGuts92 Date: Tue, 6 Dec 2016 14:35:49 -0500 Subject: [PATCH] Added flag for fullscreen toggle. --- src/xenia/app/xenia_main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xenia/app/xenia_main.cc b/src/xenia/app/xenia_main.cc index ed42869ab..03664f4a9 100644 --- a/src/xenia/app/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -42,6 +42,7 @@ DEFINE_string(gpu, "any", "Graphics system. Use: [any, gl4, vulkan, null]"); DEFINE_string(hid, "any", "Input system. Use: [any, nop, winkey, xinput]"); DEFINE_string(target, "", "Specifies the target .xex or .iso to execute."); +DEFINE_bool(fullscreen, false, "Toggles fullscreen"); namespace xe { namespace app { @@ -191,6 +192,9 @@ int xenia_main(const std::vector& args) { } } + // Toggles fullscreen + if (FLAGS_fullscreen) emulator_window->ToggleFullscreen(); + if (!path.empty()) { // Normalize the path and make absolute. std::wstring abs_path = xe::to_absolute_path(path);