Просмотр исходного кода

PR#3 review: remove <filename> from --help + formatting changes

ran clang-format on suyu_cmd/suyu.cpp
and removed one blank line on library_applet_accessor.cpp so formatting CI doesn't complain
RadsammyT 2 лет назад
Родитель
Сommit
ede4f2d8f4
2 измененных файлов с 17 добавлено и 18 удалено
  1. 0 1
      src/core/hle/service/am/service/library_applet_creator.cpp
  2. 17 17
      src/suyu_cmd/suyu.cpp

+ 0 - 1
src/core/hle/service/am/service/library_applet_creator.cpp

@@ -163,7 +163,6 @@ AppletProgramId AppletIdToProgramId(AppletId applet_id) {
     }
 }
 
-
 ILibraryAppletCreator::ILibraryAppletCreator(Core::System& system_, std::shared_ptr<Applet> applet,
                                              WindowSystem& window_system)
     : ServiceFramework{system_, "ILibraryAppletCreator"},

+ 17 - 17
src/suyu_cmd/suyu.cpp

@@ -71,23 +71,23 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
 #endif
 
 static void PrintHelp(const char* argv0) {
-    std::cout
-        << "Usage: " << argv0
-        << " [options] <filename>\n"
-           "-c, --config          Load the specified configuration file\n"
-           "-f, --fullscreen      Start in fullscreen mode\n"
-           "-g, --game            File path of the game to load\n"
-           "-h, --help            Display this help and exit\n"
-           "-m, --multiplayer=nick:password@address:port"
-           " Nickname, password, address and port for multiplayer\n"
-           "-p, --program         Pass following string as arguments to executable\n"
-           "-u, --user            Select a specific user profile from 0 to 7\n"
-           "-v, --version         Output version information and exit\n"
-           "-l, "
-           "--applet-params="
-           "\"program_id,applet_id,applet_type,launch_type,prog_index,prev_prog_index\"\n"
-           "                      Numerical parameters for launching an applet. If applet_id\n"
-           "                      is 0, then the provided game will launch, if any.\n";
+    std::cout << "Usage: " << argv0
+              << " [options]\n"
+                 "-c, --config          Load the specified configuration file\n"
+                 "-f, --fullscreen      Start in fullscreen mode\n"
+                 "-g, --game            File path of the game to load\n"
+                 "-h, --help            Display this help and exit\n"
+                 "-m, --multiplayer=nick:password@address:port"
+                 " Nickname, password, address and port for multiplayer\n"
+                 "-p, --program         Pass following string as arguments to executable\n"
+                 "-u, --user            Select a specific user profile from 0 to 7\n"
+                 "-v, --version         Output version information and exit\n"
+                 "-l, "
+                 "--applet-params="
+                 "\"program_id,applet_id,applet_type,launch_type,prog_index,prev_prog_index\"\n"
+                 "                      Numerical parameters for launching an applet. If no\n"
+                 "                      game is provided, then the applet will launch off of\n"
+                 "                      the applet_id.\n";
 }
 
 static void PrintVersion() {