Command-line support: Difference between revisions

m
no edit summary
mNo edit summary
Line 1: Line 1:
You can activate certain options when launching ''pcsx2.exe'' from the command line on Windows, or the terminal on a Linux environment, those options are called ''arguments'', wich are described below
You can specify certain options when launching ''pcsx2.exe'' from the command-line under Windows, or the terminal in Linux environment. This guide will give you the list of these options.


=Introduction=
=Introduction=
PCSX2 versions 0.9.7 and higher have full commandline support, announced on [http://pcsx2.net/developer-blog/198-the-return-of-the-commandline.html The return of the Commandline!] blog entry.
PCSX2 versions 0.9.7 and higher have full command-line support, announced on [http://pcsx2.net/developer-blog/198-the-return-of-the-commandline.html The return of the Commandline!] blog entry.


Those command line options can be added to a shortcut. That means you can have as many shortcuts to ''pcsx2.exe'' with different options and settings as you need.
=Syntax=
The following format can be used to launch PCSX2:


=Syntax=
:pcsx2.exe "'''IsoFile'''" --'''OptionName'''="'''OptionParameter'''" --'''Option2Name'''="'''Option2Parameter'''" ...
You should use the following format:
<code>
:pcsx2.exe ''"IsoFile" --option="value"''
</code>


Where:
* '''IsoFile''' is the image file of the PS2 to be loaded (with full path and extension).
* <code>IsoFile</code> is the image file of the PS2 to be loaded. Remember to include full path between ( " ) and the file extension.  
* '''OptionName''' specifies the option to be activated.
* <code>--option</code> is the argument used to active a certain option. Read below for the full list.
* '''OptionValue''' is used for the options that require some additional parameters. Do not forget to include these parameters inside quote signs ('''"''').
* <code>value</code> determines certain parameters needed for some options. Should be included betwen (''"'') and follow a (''='') symbol.


'''Example: '''
Example:<br />
<code> c:\PCSX2\pcsx2.exe  "c:\PS2\Final Fantasy X.iso" --fullscreen --cfgpath="c:\My Configs\FFX" </code>
''c:\PCSX2\pcsx2.exe  "c:\PS2\Final Fantasy X.iso" --fullscreen --cfgpath="c:\My Configs\FFX"''


When running that line from the command prompt of Windows, or the terminal on Linux systems, PCSX2 is going to open Final Fantasy X, run it on full screen, and the plugin configuration files are going to he loaded from the folder specified folder, in this case: ''c:\My Configs\FFX''.
The ISO file ''Final Fantasy X.iso'' will be launched in full screen mode automatically after PCSX2 is started. The plugin configuration files will to be loaded from the specified folder (''c:\My Configs\FFX'').
{{Tip|It is possible to make a short-cut with predefined command-line parameters and place in on desktop to launch your current PS2 game directly from your desktop.}}


=Options list=
=Options list=
Remember that the path to the PS2 image file to use have to be '''before''' any option (unless you use the <code>--usecd </code> , <code>--nodisk</code>  or <code>--elf="''file''"</code> option.
Note that you can only specify ISO image name in the first command-line option. But you can also skip ISO image name altogether and, for instance, use ''--usecd'', ''--nodisk'' or ''--elf="'''ELFFileName'''"'' options.


The full list of options are:
At this time you can only use the following options:


'''General Options'''
==General Options==
* <code>--cfgpath="''path''"</code> Changes the configuration files path.
* ''--cfgpath="'''Path'''"'': Specifies the configuration files path.
* <code>--cfg="''file''"</code> Specifies the PCSX2 configuration file to use.
* ''--cfg="'''CFGFile'''"'': Specifies the PCSX2 configuration file to use.
* <code>--forcewiz</code> Forces PCSX2 to start the First-time Wizard.
* ''--forcewiz'': Forces PCSX2 to start in the ''first time wizard'' mode.
* <code>--portable</code> Enables portable mode operation (requires admin/root access).
* ''--portable'': Enables portable mode to store ini and cfg the data to local PCSX2 paths instead of current user's documents path (This requires admin/root access).
* <code>--console</code>  Forces the program log/console to be visible.
* ''--console'': Forces PCSX2 ''log console'' to be visible.
* <code>--fullscreen</code> Use fullscreen GS mode.
* ''--fullscreen'': Starts in fullscreen mode.
* <code>--windowed</code> Use windowed GS mode.
* ''--windowed'': Starts in windowed mode (default).
* <code>--nogui</code> Disables display of the graphical user interface.
* ''--nogui'': Disables display of the graphical user interface (you can combine it with ''--fullscreen'' when loading an ISO file, so PCSX2 presence will be hidden from the user)
* <code>-h, --help</code> Displays this list of command line options.
* ''-h'' or ''--help'': Displays full list of command-line options (this list).


'''Auto-Run Options'''
==Auto-run Options==
* <code>--elf="''file''"</code> Executes an ELF image.
* ''--elf="'''ELFFile'''"'': Executes the specified ELF image on start.
* <code>--nodisc</code> Boots an empty dvd tray; use to enter the PS2 system menu.
* ''--nodisc'': Boots PS2 BIOS without DVD image; It is usedful to enter the PS2 system menu.
* <code>--usecd</code> Boots from the CDVD plugin (overrides IsoFile parameter).
* ''--usecd'': Boots from the CDVD plugin on start (overrides '''IsoFile''' parameter). You can use this option to play directly from your DVD but you will need to set up CDVD plugin first.
 
==Compatibility Options==
* ''--nohacks'': Disables all speedhacks.
* ''--gamefixes='''[fix1,fix2,...]''''': Enables the specific gamefixes for the current PCSX2 session. Valid names are: '''VuAddSub''', '''VuClipFlag''', '''FpuCompare''', '''FpuMul''', '''FpuNeg''', '''EETiming''', '''SkipMpeg''', '''OPHFlag''', '''DMABusy''', '''VIFFIFO''', '''VI''', '''FMVinSoftware''' (see [[PCSX2]] for more information).
* ''--fullboot'': Disables fast booting (does not skip PS2 BIOS when booting an ISO, this may require by some games relying on BIOS to get start-up parameters)
 
==Plugin Overrides==
* ''--gs="'''DLLpath'''"'': Specifies the file to use as the GS plugin.
* ''--pad="'''DLLpath'''"'': Specifies the file to use as the PAD plugin.
* ''--spu2="'''DLLpath'''"'': Specifies the file to use the SPU2 plugin.
* ''--cdvd="'''DLLpath'''"'': Specifies the file to use as the CDVD plugin.
* ''--usb="'''DLLpath'''"'': Specifies the file to use as the USB plugin.
* ''--fw="'''DLLpath'''"'': Specifies the file to use as the FW plugin.
* ''--dev9="'''DLLpath'''"'': Specifies the file to use as the DEV9 plugin.


'''Compatibility Options'''
* <code>--nohacks</code> Disables all speedhacks.
* <code>--gamefixes=[fix,fix]</code> Enable specific gamefixes for this session. Valid fixes are: VuAddSub, VuClipFlag, FpuCompare, FpuMul, FpuNeg, EETiming, SkipMpeg, OPHFlag, DMABusy, VIFFIFO, VI, FMVinSoftware.
* <code>--fullboot</code> Disables fast booting.
'''Plugin Overrides'''
* <code>--gs="''dllpath''"</code> Specify the file to use as the GS plugin}.
* <code>--pad="''dllpath''"</code> Specify the file to use as the PAD plugin.
* <code>--spu2="''dllpath''"</code> Specify the file to use the SPU2 plugin.
* <code>--cdvd="''dllpath''"</code> Specify the file to use as the CDVD plugin.
* <code>--usb="''dllpath''"</code> Specify the file to use as the USB plugin.
* <code>--fw="''dllpath''"</code> Specify the file to use as the FW plugin.
* <code>--dev9="''dllpath''"</code> Specify the file to use as the DEV9 plugin.


=Commandline options and shortcuts=
=Commandline options and shortcuts=
The ordinary user may use this to create a shortcut to his/her game on the desktop so that PCSX2 will run the game immediately. To do this make a link to PCSX2 main executable (pcsx2.exe) and update the '''target''' field of this link, it will look something like:
The ordinary user may use this to create a shortcut to his/her game on the desktop so that PCSX2 will run without showing PCSX2 GUI at all. To do this make a link to PCSX2 main executable (pcsx2.exe) and update the '''target''' field of this link to something like this ''"C:\PS2\pcsx2.exe" -skipbios "C:\PS2\yourgame.iso"''.
:<code>"C:\PS2\pcsx2.exe" -skipbios "C:\PS2\yourgame.iso"</code>
Now you are able to start '''C:\PS2\yourgame.iso''' right from your desktop!
And thus you'll be able to start '''C:\PS2\yourgame.iso''' right from your desktop!
{{Tip|If you have different games that need different emulation settings and/or plugins configuration, consider making as many shortcuts as you need with custom settings, or use an external launcher as described on this guide.}}
{{Tip|If you have different games that need different emulation settings and/or plugins configuration, consider making as many shortcuts as you need with custom settings, or use an external launcher as described on this guide.}}


=Commandline options and Steam=
=Commandline options and Steam=
67,565

edits