VirtualBox

Changeset 4982 in vbox


Ignore:
Timestamp:
Sep 22, 2007 8:47:18 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24750
Message:

VBoxBFE.cpp fix

File:
1 edited

Legend:

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

    r4645 r4982  
    163163#endif
    164164static char *g_pszHdaFile   = NULL;
     165static bool g_HdaSpf = false;
    165166static char *g_pszHdbFile   = NULL;
     167static bool g_HdbSpf = false;
    166168static char *g_pszCdromFile = NULL;
    167169static char *g_pszFdaFile   = NULL;
     
    512514                return SyntaxError("The path to the specified harddisk, '%s', could not be resolved.\n", argv[curArg]);
    513515        }
     516        else if (strcmp(pszArg, "-hdaspf") == 0)
     517        {
     518            g_fHdaSpf = true;
     519        }
    514520        else if (strcmp(pszArg, "-hdb") == 0)
    515521        {
     
    522528            if (!g_pszHdbFile)
    523529                return SyntaxError("The path to the specified harddisk, '%s', could not be resolved.\n", argv[curArg]);
     530        }
     531        else if (strcmp(pszArg, "-hdbspf") == 0)
     532        {
     533            g_fHdbSpf = true;
    524534        }
    525535        else if (strcmp(pszArg, "-fda") == 0)
     
    14761486        rc = CFGMR3InsertNode(pDrv,     "Config",         &pCfg);                   UPDATE_RC();
    14771487        rc = CFGMR3InsertString(pCfg,   "Path",           g_pszHdaFile);            UPDATE_RC();
     1488
     1489        if (g_fHdaSpf)
     1490        {
     1491            rc = CFGMR3InsertString(pCfg, "Format",       "SPF");                   UPDATE_RC();
     1492        }
    14781493    }
    14791494
     
    14961511        rc = CFGMR3InsertNode(pDrv,     "Config",         &pCfg);                   UPDATE_RC();
    14971512        rc = CFGMR3InsertString(pCfg,   "Path",           g_pszHdbFile);            UPDATE_RC();
     1513
     1514        if (g_fHdbSpf)
     1515        {
     1516            rc = CFGMR3InsertString(pCfg, "Format",       "SPF");                   UPDATE_RC();
     1517        }
    14981518    }
    14991519
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