diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-21 19:53:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-21 19:53:55 +0200 |
commit | 62937798a0d298ca463486120d27a752fa798b68 (patch) | |
tree | 42ef6005d66a5c31ab002ceefdfdc1d16391dd67 /src/yuzu_cmd/yuzu.cpp | |
parent | Merge pull request #376 from bunnei/shader-decoder (diff) | |
parent | SDL2: Implement fullscreen. (Original PR: citra-emu/citra#3607) (diff) | |
download | yuzu-62937798a0d298ca463486120d27a752fa798b68.tar yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.gz yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.bz2 yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.lz yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.xz yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.zst yuzu-62937798a0d298ca463486120d27a752fa798b68.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index a91140447..39603e881 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -50,6 +50,7 @@ static void PrintHelp(const char* argv0) { std::cout << "Usage: " << argv0 << " [options] <filename>\n" "-g, --gdbport=NUMBER Enable gdb stub on port NUMBER\n" + "-f, --fullscreen Start in fullscreen mode\n" "-h, --help Display this help and exit\n" "-v, --version Output version information and exit\n"; } @@ -76,15 +77,18 @@ int main(int argc, char** argv) { #endif std::string filepath; + bool fullscreen = false; + static struct option long_options[] = { {"gdbport", required_argument, 0, 'g'}, + {"fullscreen", no_argument, 0, 'f'}, {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'v'}, {0, 0, 0, 0}, }; while (optind < argc) { - char arg = getopt_long(argc, argv, "g:hv", long_options, &option_index); + char arg = getopt_long(argc, argv, "g:fhv", long_options, &option_index); if (arg != -1) { switch (arg) { case 'g': @@ -98,6 +102,10 @@ int main(int argc, char** argv) { exit(1); } break; + case 'f': + fullscreen = true; + NGLOG_INFO(Frontend, "Starting in fullscreen mode..."); + break; case 'h': PrintHelp(argv[0]); return 0; @@ -137,7 +145,7 @@ int main(int argc, char** argv) { Settings::values.use_gdbstub = use_gdbstub; Settings::Apply(); - std::unique_ptr<EmuWindow_SDL2> emu_window{std::make_unique<EmuWindow_SDL2>()}; + std::unique_ptr<EmuWindow_SDL2> emu_window{std::make_unique<EmuWindow_SDL2>(fullscreen)}; Core::System& system{Core::System::GetInstance()}; |