int rv = LoadAppData(appDataFile, &appData);
int rv = LoadAppData(appDataFile, &appData, vendor, name, version, buildID, appID, copyright);
int main(int argc, char* argv[]){  if (argc > 1 && (IsArg(argv[1], "h") ||                   IsArg(argv[1], "help") ||                   IsArg(argv[1], "?")))  {    Usage();    return 0;  }  if (argc == 2 && (IsArg(argv[1], "v") || IsArg(argv[1], "version")))  {    Output(PR_FALSE, "Mozilla XULRunner %s\n", GRE_BUILD_ID);    return 0;  }  if (argc > 1) {    PRBool registerGlobal = IsArg(argv[1], "register-global");    PRBool registerUser   = IsArg(argv[1], "register-user");    if (registerGlobal || registerUser) {      if (argc != 2) {        Usage();        return 1;      }      nsCOMPtr<nsIFile> regDir;      nsresult rv = GetXULRunnerDir(argv[0], getter_AddRefs(regDir));      if (NS_FAILED(rv))        return 2;      return RegisterXULRunner(registerGlobal, regDir) ? 0 : 2;    }    registerGlobal = IsArg(argv[1], "unregister-global");    registerUser   = IsArg(argv[1], "unregister-user");    if (registerGlobal || registerUser) {      if (argc != 2) {        Usage();        return 1;      }      nsCOMPtr<nsIFile> regDir;      nsresult rv = GetXULRunnerDir(argv[0], getter_AddRefs(regDir));      if (NS_FAILED(rv))        return 2;      UnregisterXULRunner(registerGlobal, regDir);      return 0;    }    if (IsArg(argv[1], "find-gre")) {      if (argc != 3) {        Usage();        return 1;      }      char version[MAXPATHLEN];      nsresult rv = GRE_GetGREPathForVersion(argv[2], version, MAXPATHLEN);      if (NS_FAILED(rv))        return 1;      printf("%s\n", version);      return 0;    }    if (IsArg(argv[1], "gre-version")) {      if (argc != 2) {        Usage();        return 1;      }      printf("%s\n", GRE_BUILD_ID);      return 0;    }  }  geckoVersion = ParseVersion(GRE_BUILD_ID);  const char *appDataFile = PR_GetEnv("XUL_APP_FILE");  if (!(appDataFile && *appDataFile)) {    if (argc < 2) {      Usage();      return 1;    }    if (IsArg(argv[1], "app")) {      if (argc == 2) {        Usage();        return 1;      }      argv[1] = argv[0];      ++argv;      --argc;    }    appDataFile = argv[1];    argv[1] = argv[0];    ++argv;    --argc;    static char kAppEnv[MAXPATHLEN];    PR_snprintf(kAppEnv, MAXPATHLEN, "XUL_APP_FILE=%s", appDataFile);    PR_SetEnv(kAppEnv);  }  nsXREAppData appData = { sizeof(nsXREAppData), 0 };  int rv = LoadAppData(appDataFile, &appData);  if (!rv)    rv = XRE_main(argc, argv, &appData);  NS_IF_RELEASE(appData.directory);  return rv;}