diff --git a/Source/Core/DolphinWX/Src/MainNoGUI.cpp b/Source/Core/DolphinWX/Src/MainNoGUI.cpp index 2389cf017d..fb28013d9e 100644 --- a/Source/Core/DolphinWX/Src/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/Src/MainNoGUI.cpp @@ -63,27 +63,25 @@ void Host_UpdateStatusBar(const char* _pText){} int main(int argc, char* argv[]) { - gengetopt_args_info args_info; - - if (cmdline_parser (argc, argv, &args_info) != 0) - return(1); - - if (args_info.inputs_num < 1) - { - fprintf(stderr, "Please supply at least one argument - the ISO to boot.\n"); - return(1); - } - std::string bootFile(args_info.inputs[0]); + gengetopt_args_info args_info; - DetectCPU(); - BootManager::BootCore(bootFile); - usleep(2000 * 1000 * 1000); -// while (!getch()) { + if (cmdline_parser (argc, argv, &args_info) != 0) + return(1); + + if (args_info.inputs_num < 1) + { + fprintf(stderr, "Please supply at least one argument - the ISO to boot.\n"); + return(1); + } + std::string bootFile(args_info.inputs[0]); + + DetectCPU(); + BootManager::BootCore(bootFile); + usleep(2000 * 1000 * 1000); + //while (!getch()) { // usleep(20); -// } + //} - cmdline_parser_free (&args_info); - return(0); + cmdline_parser_free (&args_info); + return(0); } - -