Skip to content

Commit

Permalink
Added flag for fullscreen toggle.
Browse files Browse the repository at this point in the history
  • Loading branch information
PikminGuts92 committed Dec 6, 2016
1 parent 6823575 commit 9a8005e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xenia/app/xenia_main.cc
Expand Up @@ -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 {
Expand Down Expand Up @@ -191,6 +192,9 @@ int xenia_main(const std::vector<std::wstring>& 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);
Expand Down

0 comments on commit 9a8005e

Please sign in to comment.