Browse Source

Make version flag `-v` and debug info consistent with menu bar text.

tags/v2.2.3
Andrew Belt 1 year ago
parent
commit
5d1de522b2
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      adapters/standalone.cpp

+ 3
- 2
adapters/standalone.cpp View File

@@ -71,6 +71,7 @@ int main(int argc, char* argv[]) {
std::string patchPath; std::string patchPath;
bool screenshot = false; bool screenshot = false;
float screenshotZoom = 1.f; float screenshotZoom = 1.f;
const std::string appInfo = APP_NAME + " " + APP_EDITION_NAME + " " + APP_VERSION + " " + APP_OS_NAME + " " + APP_CPU_NAME;


// Parse command line arguments // Parse command line arguments
static const struct option longOptions[] = { static const struct option longOptions[] = {
@@ -108,7 +109,7 @@ int main(int argc, char* argv[]) {
asset::userDir = optarg; asset::userDir = optarg;
} break; } break;
case 'v': { case 'v': {
std::fprintf(stderr, "%s %s %s %s-%s\n", APP_NAME.c_str(), APP_EDITION_NAME.c_str(), APP_VERSION.c_str(), APP_OS.c_str(), APP_CPU.c_str());
std::fprintf(stderr, "%s\n", appInfo.c_str());
return 0; return 0;
} }
// Mac "app translocation" passes a nonsense -psn_... flag, so -p is reserved. // Mac "app translocation" passes a nonsense -psn_... flag, so -p is reserved.
@@ -142,7 +143,7 @@ int main(int argc, char* argv[]) {
} }


// Log environment // Log environment
INFO("%s %s %s", APP_NAME.c_str(), APP_EDITION_NAME.c_str(), APP_VERSION.c_str());
INFO("%s", appInfo.c_str());
INFO("%s", system::getOperatingSystemInfo().c_str()); INFO("%s", system::getOperatingSystemInfo().c_str());
std::string argsList; std::string argsList;
for (int i = 0; i < argc; i++) { for (int i = 0; i < argc; i++) {


Loading…
Cancel
Save