..:: PCSX2 Forums ::..
Register | Help | Log In |
Register PCSX2 Site Forums Member List Donate View Today's Posts Search

Current time: 03-20-2010, 03:52 AM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / PCSX2 Discussion and Support / General Discussion / Pcsx2 and Microsoft Commands Line...?

1 user browsing this thread: (0 members, and 1 guest).

Pages (2): « Previous 1 2
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Pcsx2 and Microsoft Commands Line...?
Author Message
pcsx2fan Offline
Guide Translator
****

Posts: 166
Joined: Jun 2009
Location: Formosa
Post: #11
RE: Pcsx2 and Microsoft Commands Line...?
Downloaded pcsx2-1621 from official spot: http://pcsx2.dyndns.org/index.php#pcsx2

Tested but didn't work for running into bios.

This'd directly go bios, but now directly run game instead.
Quote:pcsx2 -bootmode 0


EDIT: I found it, Now use this to enter bios.
Quote:pcsx2 -bootmode 3

IN HONOR OF PS2
E7200 @ 2.53 Ghz or 3.8 Ghz 1.3625 V (400x9.5)
8600GT
GA-EP31-DS3L
4GB DDR2 800
21" CRT Trinitron

Windows 7 Home Basic N x86 (DISM+vLite)
(This post was last modified: 08-14-2009 10:39 AM by pcsx2fan. Edit Reason: )
08-14-2009 10:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
phikhanh Offline
Member
**

Posts: 86
Joined: Dec 2008
Location:
Post: #12
RE: Pcsx2 and Microsoft Commands Line...?
pcsx2fan, can I have some explaination about command line from you(for pcsx2 as I said above)? ex, paramaters..and how to use them. Thanks first...!!!
08-14-2009 01:33 PM
Find all posts by this user Quote this message in a reply
zero29 Offline
Forum Weirdo
****

Posts: 861
Joined: May 2009
Location: Germany
Post: #13
RE: Pcsx2 and Microsoft Commands Line...?
Command Line Syntax (taken from WinMain.cpp):

Code:
pcsx2 [options] [cdimage/elf file]

   -cfg [file] {configuration file}
   -bootmode [mode] {0 - quick (default), 1 - bios,  2 - load elf}
   -nogui {disables display of the gui - skips right to opening the GS window}
   -help {display this help file}
   -loadgs [file] {Loads a gsstate}

Run without GUI Options:

Plugin Overrides (specified dlls will be used in place of configured dlls):
   -cdvd [dllpath] {specifies an override for the CDVD plugin}
   -gs [dllpath] {specifies an override for the GS plugin}
   -spu [dllpath] {specifies an override for the SPU2 plugin}
   -pad [dllpath] {specifies an override for *both* pad plugins}
   -pad1 [dllpath] {specifies an override for the PAD1 plugin only}
   -pad2 [dllpath] {specifies an override for the PAD2 plugin only}
   -dev9 [dllpath] {specifies an override for the DEV9 plugin}

pcsx2 r1593 introduced some changes for the -bootmode parameter, description here: http://code.google.com/p/pcsx2/source/detail?r=1593

CPU: C2D E8400@3.0GHz
GPU: RadeonHD 4870
OS1: WinXP Prof. (x86) SP3
OS2: Vista Ult. (x64) SP2

EMU: PCSX2 r1736
GPU: GSdx10 SSE4.1 r1398/r1650
SPU: SPU2-X r1740
PAD: LilyPad r1681
08-14-2009 02:01 PM
Find all posts by this user Quote this message in a reply
pcsx2fan Offline
Guide Translator
****

Posts: 166
Joined: Jun 2009
Location: Formosa
Post: #14
RE: Pcsx2 and Microsoft Commands Line...?
What I did is searching Entire Solution in VC++2008 Express SP1 for "bootmode", with SVN sources of PCSX2-r1622.

Apparently, Normal & Quick are equivalent indicate 0, for normal boot. 3 for bios
Quote:Find all "bootmode", Subfolders, Find Results 1, "Entire Solution"
R:\PCSX2\pcsx2\HostGui.h(26): BootMode_Normal = 0,
R:\PCSX2\pcsx2\HostGui.h(27): BootMode_Elf = 1, // not compatible with bios flag, probably
R:\PCSX2\pcsx2\HostGui.h(28): BootMode_Iso = 2,
R:\PCSX2\pcsx2\HostGui.h(29): BootMode_NoDisc = 3, // nodisc implies bios.
R:\PCSX2\pcsx2\HostGui.h(31): BootMode_Quick = 0,
R:\PCSX2\pcsx2\HostGui.h(32): BootMode_Bios = 0x10000,
R:\PCSX2\pcsx2\HostGui.h(34): BootMode_ModeMask = 0xFFFF,
R:\PCSX2\pcsx2\HostGui.h(46): StartupMode BootMode;
R:\PCSX2\pcsx2\windows\WinMain.cpp(69): "\t-bootmode [mode] {0 - quick (default), 1 - bios, 2 - load elf}\n"
R:\PCSX2\pcsx2\windows\WinMain.cpp(377): int mode = g_Startup.BootMode & BootMode_ModeMask;
R:\PCSX2\pcsx2\windows\WinMain.cpp(379): if( g_Startup.Enabled && (mode != BootMode_Elf) )
R:\PCSX2\pcsx2\windows\WinMain.cpp(382): if(mode == BootMode_Iso)
R:\PCSX2\pcsx2\windows\WinMain.cpp(384): else if(mode == BootMode_NoDisc)
R:\PCSX2\pcsx2\windows\WinMain.cpp(394): (g_Startup.BootMode == BootMode_Elf) ? g_Startup.ImageName : NULL,
R:\PCSX2\pcsx2\windows\WinMain.cpp(395): ((g_Startup.BootMode & BootMode_Bios) != 0)
R:\PCSX2\pcsx2\windows\WinSysExec.cpp(69): g_Startup.BootMode = BootMode_Normal;
R:\PCSX2\pcsx2\windows\WinSysExec.cpp(109): else if( CmdSwitchIs( "bootmode" ) ) {
R:\PCSX2\pcsx2\windows\WinSysExec.cpp(110): g_Startup.BootMode = (StartupMode)atoi( param );
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(93): g_Startup.BootMode = BootMode_Bios;
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(112): else if( strcmp(token, "-bootmode" ) == 0)
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(115): g_Startup.BootMode = (StartupMode)atoi( token);
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(187): int mode = g_Startup.BootMode & BootMode_ModeMask;
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(189): if( g_Startup.Enabled && (mode != BootMode_Elf) )
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(192): if(mode == BootMode_Iso)
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(194): else if(mode == BootMode_NoDisc)
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(204): (g_Startup.BootMode == BootMode_Elf) ? g_Startup.ImageName : NULL,
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(205): ((g_Startup.BootMode & BootMode_Bios) != 0)
R:\PCSX2\pcsx2\Plugins.cpp(850): if (g_Startup.BootMode != BootMode_Elf)
R:\PCSX2\pcsx2\System.cpp(409): g_Startup.BootMode = (elf_file) ? BootMode_Elf : BootMode_Normal;
R:\PCSX2\pcsx2\R3000AInterpreter.cpp(52): "QueryBootMode", "RegisterBootMode", "setFlag", "resetFlag",
Matching lines: 30 Matching files: 7 Total files searched: 843


Now for practicality, send pcsx2.exe to desktop (create shortcut). for shortcut target, add command line parameters as suffix.

For instance, you wanna enter game with one click, shoot on this:
[Image: pcsx2_r1621_command_line_shortcut.png]


Summary for Usage
Go game
Quote:pcsx2 -bootmode 0

Go bios
Quote:pcsx2 -bootmode 3

Specify ISO to play with, use with Linuz Iso CDVD.
Quote:pcsx2 X:\Path\Game.iso


Note
Currently for PCSX2-r1622 I tested, command line may alter in future. I guess.


Known Issue
When cooperating with Esc Hack (Use Esc key to fully exit pcsx2). Hit Esc won't allow you quit emulator, but go back GUI as if no Esc Hack applied.

IN HONOR OF PS2
E7200 @ 2.53 Ghz or 3.8 Ghz 1.3625 V (400x9.5)
8600GT
GA-EP31-DS3L
4GB DDR2 800
21" CRT Trinitron

Windows 7 Home Basic N x86 (DISM+vLite)
(This post was last modified: 08-14-2009 03:18 PM by pcsx2fan. Edit Reason: )
08-14-2009 03:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Cáno Offline
Newbie

Posts: 1
Joined: Nov 2009
Location:
Post: #15
RE: Pcsx2 and Microsoft Commands Line...?
OK, it's pretty old thread but that's exactly what I was looking for.

This is how the shortcut looks like:
[Image: 43159983.jpg]And it opens PCSX2 but doesn't boot the BIOS. -bootmode 1 and -help don't work either. What am I doing wrong?

I tried to modify and build PCSX2 myself but failed miserably with VS2010 B2.

Also, what are these PCSX2-r1622, pcsx2-r1593, pcsx2-r1493m that you are talking about?

Cáno
11-19-2009 12:59 AM
Find all posts by this user Quote this message in a reply
cyronc Offline
Newbie

Posts: 9
Joined: Nov 2009
Location:
Post: #16
RE: Pcsx2 and Microsoft Commands Line...?
Cano: the numbers stand for the beta releases afaik, hope that helps Wink
11-21-2009 12:20 AM
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Current time: 03-20-2010, 03:52 AM

Contact Us | PCSX2 | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2010 MyBB Group.
Theme created by IncadudeF and modified by bositman