VirtualBox

Changeset 5172 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 5, 2007 5:20:40 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25074
Message:

Added modifyvm -biospxedebug on|off option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r5150 r5172  
    323323                 "                            [-biosbootmenu disabled|menuonly|messageandmenu]\n"
    324324                 "                            [-biossystemtimeoffset <msec>]\n"
     325                 "                            [-biospxedebug on|off]\n"
    325326                 "                            [-boot<1-4> none|floppy|dvd|disk|net>]\n"
    326327                 "                            [-hd<a|b|d> none|<uuid>|<filename>]\n"
     
    35323533    char *biosbootmenumode = NULL;
    35333534    char *biossystemtimeoffset = NULL;
     3535    char *biospxedebug = NULL;
    35343536    DeviceType_T bootDevice[4];
    35353537    int bootDeviceChanged[4] = { false };
     
    37183720            biossystemtimeoffset = argv[i];
    37193721        }
     3722        else if (strcmp(argv[i], "-biospxedebug") == 0)
     3723        {
     3724            if (argc <= i + 1)
     3725            {
     3726                return errorArgument("Missing argument to '%s'", argv[i]);
     3727            }
     3728            i++;
     3729            biospxedebug = argv[i];
     3730        }
    37203731        else if (strncmp(argv[i], "-boot", 5) == 0)
    37213732        {
     
    43044315            LONG64 timeOffset = RTStrToInt64(biossystemtimeoffset);
    43054316            CHECK_ERROR(biosSettings, COMSETTER(TimeOffset)(timeOffset));
     4317        }
     4318        if (biospxedebug)
     4319        {
     4320            if (strcmp(biospxedebug, "on") == 0)
     4321            {
     4322                CHECK_ERROR(biosSettings, COMSETTER(PXEDebugEnabled)(true));
     4323            }
     4324            else if (strcmp(biospxedebug, "off") == 0)
     4325            {
     4326                CHECK_ERROR(biosSettings, COMSETTER(PXEDebugEnabled)(false));
     4327            }
     4328            else
     4329            {
     4330                errorArgument("Invalid -biospxedebug argument '%s'", biospxedebug);
     4331                rc = E_FAIL;
     4332                break;
     4333            }
    43064334        }
    43074335        for (int curBootDev = 0; curBootDev < 4; curBootDev++)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette