VirtualBox

Changeset 18785 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 6, 2009 4:01:39 PM (16 years ago)
Author:
vboxsync
Message:

API/MachineImpl: double-dash command line options and support starting VMs using SDL frontend

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r18621 r18785  
    38263826        Utf8Str idStr = mData->mUuid.toString();
    38273827# ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
    3828         const char * args[] = {path, "-startvm", idStr, 0 };
     3828        const char * args[] = {path, "--startvm", idStr, 0 };
    38293829# else
    38303830        Utf8Str name = mUserData->mName;
    3831         const char * args[] = {path, "-comment", name, "-startvm", idStr, 0 };
     3831        const char * args[] = {path, "--comment", name, "--startvm", idStr, 0 };
    38323832# endif
    38333833        vrc = RTProcCreate (path, args, env, 0, &pid);
     
    38403840    else
    38413841
     3842#ifdef VBOX_WITH_VBOXSDL
     3843    if (type == "sdl" || type == "GUI/SDL")
     3844    {
     3845        const char VBoxSDL_exe[] = "VBoxSDL" HOSTSUFF_EXE;
     3846        Assert (sz >= sizeof (VBoxSDL_exe));
     3847        strcpy (cmd, VBoxSDL_exe);
     3848
     3849        Utf8Str idStr = mData->mUuid.toString();
     3850# ifdef RT_OS_WINDOWS
     3851        const char * args[] = {path, "--startvm", idStr, 0 };
     3852# else
     3853        Utf8Str name = mUserData->mName;
     3854        const char * args[] = {path, "--comment", name, "--startvm", idStr, 0 };
     3855# endif
     3856        vrc = RTProcCreate (path, args, env, 0, &pid);
     3857    }
     3858#else /* !VBOX_WITH_VBOXSDL */
     3859    if (0)
     3860        ;
     3861#endif /* !VBOX_WITH_VBOXSDL */
     3862
     3863    else
     3864
    38423865#ifdef VBOX_WITH_VRDP
    38433866    if (type == "vrdp")
     
    38493872        Utf8Str idStr = mData->mUuid.toString();
    38503873# ifdef RT_OS_WINDOWS
    3851         const char * args[] = {path, "-startvm", idStr, 0 };
     3874        const char * args[] = {path, "--startvm", idStr, 0 };
    38523875# else
    38533876        Utf8Str name = mUserData->mName;
    3854         const char * args[] = {path, "-comment", name, "-startvm", idStr, 0 };
     3877        const char * args[] = {path, "--comment", name, "--startvm", idStr, 0 };
    38553878# endif
    38563879        vrc = RTProcCreate (path, args, env, 0, &pid);
     
    38723895        Utf8Str idStr = mData->mUuid.toString();
    38733896# ifdef RT_OS_WINDOWS
    3874         const char * args[] = {path, "-startvm", idStr, "-capture", 0 };
     3897        const char * args[] = {path, "--startvm", idStr, "--capture", 0 };
    38753898# else
    38763899        Utf8Str name = mUserData->mName;
    3877         const char * args[] = {path, "-comment", name, "-startvm", idStr, "-capture", 0 };
     3900        const char * args[] = {path, "--comment", name, "--startvm", idStr, "--capture", 0 };
    38783901# endif
    38793902        vrc = RTProcCreate (path, args, env, 0, &pid);
  • trunk/src/VBox/Main/Makefile.kmk

    r18749 r18785  
    196196        VBOX_MAIN_SETTINGS_ADDONS \
    197197        $(VBOX_MAIN_DEFS) \
     198        $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
    198199        $(if $(VBOX_WITH_VRDP),VBOX_WITH_VRDP,) \
    199200        $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
Note: See TracChangeset for help on using the changeset viewer.

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