diff options
author | polaris- <nagatospam@gmail.com> | 2016-04-07 04:27:28 +0200 |
---|---|---|
committer | polaris- <nagatospam@gmail.com> | 2016-04-07 04:27:28 +0200 |
commit | 64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f (patch) | |
tree | 1e8a0ef812429b631ec641b6c4d9449cbf3fa553 /src/citra/citra.cpp | |
parent | Adopted WinterMute's gdbstub changes (diff) | |
download | yuzu-64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f.tar yuzu-64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f.tar.gz yuzu-64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f.tar.bz2 yuzu-64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f.tar.lz yuzu-64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f.tar.xz yuzu-64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f.tar.zst yuzu-64ec5ac356cfc1ac433bce9d93ca6a9c2edba79f.zip |
Diffstat (limited to 'src/citra/citra.cpp')
-rw-r--r-- | src/citra/citra.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 045c5fe8c..3a1fbe3f7 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp @@ -43,8 +43,10 @@ static void PrintHelp() /// Application entry point int main(int argc, char **argv) { + Config config; int option_index = 0; - u32 gdb_port = 0; + bool use_gdbstub = Settings::values.use_gdbstub; + u32 gdb_port = static_cast<u32>(Settings::values.gdbstub_port); char *endarg; std::string boot_filename; @@ -64,6 +66,7 @@ int main(int argc, char **argv) { case 'g': errno = 0; gdb_port = strtoul(optarg, &endarg, 0); + use_gdbstub = true; if (endarg == optarg) errno = EINVAL; if (errno != 0) { perror("--gdbport"); @@ -88,13 +91,10 @@ int main(int argc, char **argv) { return -1; } - Config config; log_filter.ParseFilterString(Settings::values.log_filter); - if (gdb_port != 0) { - GDBStub::ToggleServer(true); - GDBStub::SetServerPort(gdb_port); - } + GDBStub::ToggleServer(use_gdbstub); + GDBStub::SetServerPort(gdb_port); std::unique_ptr<EmuWindow_SDL2> emu_window = std::make_unique<EmuWindow_SDL2>(); |